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 intprivate static final Stringprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Raid> private intstatic final SavedDataType<Raids> static final SavedDataType<Raids> -
Constructor Summary
ConstructorsModifierConstructorDescriptionRaids()privateRaids(List<Raids.RaidWithId> p_401252_, int p_401028_, int p_401314_) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanJoinRaid(Raider pRaider) createOrExtendRaid(ServerPlayer pPlayer, BlockPos pPos) get(int pId) getNearbyRaid(BlockPos pPos, int pDistance) private RaidgetOrCreateRaid(ServerLevel pServerLevel, BlockPos pPos) static SavedDataType<Raids> getType(Holder<DimensionType> pDimension) private intstatic Raidsload(CompoundTag pTag) voidtick(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
-