Package net.minecraft.world.entity.raid
Class Raids
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.minecraft.world.entity.raid.Raids
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData
SavedData.Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Raids> private int
private static final String
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Raid> private int
static final SavedDataType
<Raids> static final SavedDataType
<Raids> -
Constructor Summary
ConstructorsModifierConstructorDescriptionRaids()
private
Raids
(List<Raids.RaidWithId> p_401252_, int p_401028_, int p_401314_) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canJoinRaid
(Raider pRaider) createOrExtendRaid
(ServerPlayer pPlayer, BlockPos pPos) get
(int pId) getNearbyRaid
(BlockPos pPos, int pDistance) private Raid
getOrCreateRaid
(ServerLevel pServerLevel, BlockPos pPos) static SavedDataType
<Raids> getType
(Holder<DimensionType> pDimension) private int
static Raids
load
(CompoundTag pTag) void
tick
(ServerLevel pLevel)
-
Field Details
-
RAID_FILE_ID
- See Also:
-
CODEC
-
TYPE
-
TYPE_END
-
raidMap
-
nextId
private int nextId -
tick
private int tick
-
-
Constructor Details
-
Raids
public Raids() -
Raids
-
-
Method Details
-
getType
-
get
-
getId
-
tick
-
canJoinRaid
-
createOrExtendRaid
-
getOrCreateRaid
-
load
-
getUniqueId
private int getUniqueId() -
getNearbyRaid
-