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 classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData
SavedData.Factory<T extends SavedData>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerLevel
private int
private static final String
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canJoinRaid
(Raider pRaider, Raid pRaid) createOrExtendRaid
(ServerPlayer pPlayer, BlockPos pPos) static SavedData.Factory
<Raids> factory
(ServerLevel pLevel) get
(int pId) static String
getFileId
(Holder<DimensionType> pDimensionTypeHolder) getNearbyRaid
(BlockPos pPos, int pDistance) private Raid
getOrCreateRaid
(ServerLevel pServerLevel, BlockPos pPos) private int
static Raids
load
(ServerLevel pLevel, CompoundTag pTag) save
(CompoundTag pTag, HolderLookup.Provider pRegistries) void
tick()
-
Field Details
-
RAID_FILE_ID
- See Also:
-
raidMap
-
level
-
nextAvailableID
private int nextAvailableID -
tick
private int tick
-
-
Constructor Details
-
Raids
-
-
Method Details