public class ServerWorld extends World implements ISeedReader, IForgeWorldServer
Modifier and Type | Field and Description |
---|---|
private boolean |
allPlayersSleeping |
private it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet<BlockEventData> |
blockEvents |
private ServerTickList<Block> |
blockTicks |
private WorldCapabilityData |
capabilityData |
private ServerChunkProvider |
chunkSource |
private java.util.List<ISpecialSpawner> |
customSpawners |
private DragonFightManager |
dragonFight |
private int |
emptyTime |
static BlockPos |
END_SPAWN_POINT |
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> |
entitiesById |
private java.util.Map<java.util.UUID,Entity> |
entitiesByUuid |
private boolean |
handlingTick |
private ServerTickList<Fluid> |
liquidTicks |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Set<PathNavigator> |
navigations |
boolean |
noSave |
private java.util.List<ServerPlayerEntity> |
players |
private Teleporter |
portalForcer |
protected RaidManager |
raids |
private MinecraftServer |
server |
private IServerWorldInfo |
serverLevelData |
private StructureManager |
structureFeatureManager |
(package private) boolean |
tickingEntities |
private boolean |
tickTime |
private java.util.Queue<Entity> |
toAddAfterTick |
addend, blockEntitiesToUnload, blockEntityList, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, NETHER, oRainLevel, oThunderLevel, OVERWORLD, pendingBlockEntities, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, thunderLevel, tickableBlockEntities, updatingBlockEntities
Constructor and Description |
---|
ServerWorld(MinecraftServer p_i241885_1_,
java.util.concurrent.Executor p_i241885_2_,
SaveFormat.LevelSave p_i241885_3_,
IServerWorldInfo p_i241885_4_,
RegistryKey<World> p_i241885_5_,
DimensionType p_i241885_6_,
IChunkStatusListener p_i241885_7_,
ChunkGenerator p_i241885_8_,
boolean p_i241885_9_,
long p_i241885_10_,
java.util.List<ISpecialSpawner> p_i241885_12_,
boolean p_i241885_13_) |
Modifier and Type | Method and Description |
---|---|
private void |
add(Entity p_217465_1_) |
void |
addDuringCommandTeleport(ServerPlayerEntity p_217446_1_) |
void |
addDuringPortalTeleport(ServerPlayerEntity p_217447_1_) |
private boolean |
addEntity(Entity p_72838_1_) |
boolean |
addFreshEntity(Entity p_217376_1_) |
void |
addFromAnotherDimension(Entity p_217460_1_) |
void |
addNewPlayer(ServerPlayerEntity p_217435_1_) |
private void |
addPlayer(ServerPlayerEntity p_217448_1_) |
void |
addRespawnedPlayer(ServerPlayerEntity p_217433_1_) |
boolean |
addWithUUID(Entity p_217470_1_) |
void |
blockEvent(BlockPos p_175641_1_,
Block p_175641_2_,
int p_175641_3_,
int p_175641_4_) |
void |
blockUpdated(BlockPos p_230547_1_,
Block p_230547_2_) |
void |
broadcastEntityEvent(Entity p_72960_1_,
byte p_72960_2_) |
void |
clearBlockEvents(MutableBoundingBox p_229854_1_) |
void |
despawn(Entity p_217467_1_) |
void |
destroyBlockProgress(int p_175715_1_,
BlockPos p_175715_2_,
int p_175715_3_) |
private boolean |
doBlockEvent(BlockEventData p_147485_1_) |
DragonFightManager |
dragonFight() |
private void |
dumpBlockEntities(java.io.Writer p_225321_1_) |
private static void |
dumpEntities(java.io.Writer p_225320_0_,
java.lang.Iterable<Entity> p_225320_1_) |
Explosion |
explode(Entity p_230546_1_,
DamageSource p_230546_2_,
ExplosionContext p_230546_3_,
double p_230546_4_,
double p_230546_6_,
double p_230546_8_,
float p_230546_10_,
boolean p_230546_11_,
Explosion.Mode p_230546_12_) |
private Entity |
findAddedOrPendingEntity(java.util.UUID p_242105_1_) |
protected BlockPos |
findLightingTargetAround(BlockPos p_175736_1_) |
BlockPos |
findNearestBiome(Biome p_241116_1_,
BlockPos p_241116_2_,
int p_241116_3_,
int p_241116_4_) |
BlockPos |
findNearestMapFeature(Structure<?> p_241117_1_,
BlockPos p_241117_2_,
int p_241117_3_,
boolean p_241117_4_) |
java.lang.Iterable<Entity> |
getAllEntities() |
ServerTickList<Block> |
getBlockTicks() |
ServerChunkProvider |
getChunkSource() |
DimensionSavedDataManager |
getDataStorage() |
java.util.List<EnderDragonEntity> |
getDragons() |
java.util.stream.Stream<Entity> |
getEntities() |
java.util.List<Entity> |
getEntities(EntityType<?> p_217482_1_,
java.util.function.Predicate<? super Entity> p_217482_2_) |
Entity |
getEntity(int p_73045_1_) |
Entity |
getEntity(java.util.UUID p_217461_1_) |
it.unimi.dsi.fastutil.longs.LongSet |
getForcedChunks() |
int |
getFreeMapId() |
ServerWorld |
getLevel() |
ServerTickList<Fluid> |
getLiquidTicks() |
MapData |
getMapData(java.lang.String p_217406_1_) |
java.util.List<ServerPlayerEntity> |
getPlayers(java.util.function.Predicate<? super ServerPlayerEntity> p_217490_1_) |
PointOfInterestManager |
getPoiManager() |
Teleporter |
getPortalForcer() |
Raid |
getRaidAt(BlockPos p_217475_1_) |
RaidManager |
getRaids() |
ServerPlayerEntity |
getRandomPlayer() |
RecipeManager |
getRecipeManager() |
ServerScoreboard |
getScoreboard() |
long |
getSeed() |
MinecraftServer |
getServer() |
float |
getShade(Direction p_230487_1_,
boolean p_230487_2_) |
float |
getSharedSpawnAngle() |
BlockPos |
getSharedSpawnPos() |
TemplateManager |
getStructureManager() |
ITagCollectionSupplier |
getTagManager() |
private static <T> java.lang.String |
getTypeCount(java.util.Collection<T> p_244524_0_,
java.util.function.Function<T,ResourceLocation> p_244524_1_) |
Biome |
getUncachedNoiseBiome(int p_225604_1_,
int p_225604_2_,
int p_225604_3_) |
java.lang.String |
getWatchdogStats() |
void |
globalLevelEvent(int p_175669_1_,
BlockPos p_175669_2_,
int p_175669_3_) |
protected void |
initCapabilities() |
boolean |
isCloseToVillage(BlockPos p_241119_1_,
int p_241119_2_) |
boolean |
isFlat() |
boolean |
isHandlingTick() |
boolean |
isRaided(BlockPos p_217455_1_) |
private boolean |
isUUIDUsed(Entity p_217478_1_) |
boolean |
isVillage(BlockPos p_217483_1_) |
boolean |
isVillage(SectionPos p_222887_1_) |
void |
levelEvent(PlayerEntity p_217378_1_,
int p_217378_2_,
BlockPos p_217378_3_,
int p_217378_4_) |
boolean |
loadFromChunk(Entity p_217440_1_) |
static void |
makeObsidianPlatform(ServerWorld p_241121_0_) |
boolean |
mayInteract(PlayerEntity p_175660_1_,
BlockPos p_175660_2_) |
boolean |
noSave() |
void |
onBlockStateChange(BlockPos p_217393_1_,
BlockState p_217393_2_,
BlockState p_217393_3_) |
void |
onEntityRemoved(Entity p_217484_1_)
Deprecated.
|
void |
onReputationEvent(IReputationType p_217489_1_,
Entity p_217489_2_,
IReputationTracking p_217489_3_) |
java.util.List<ServerPlayerEntity> |
players() |
void |
playSound(PlayerEntity p_184148_1_,
double p_184148_2_,
double p_184148_4_,
double p_184148_6_,
SoundEvent p_184148_8_,
SoundCategory p_184148_9_,
float p_184148_10_,
float p_184148_11_) |
void |
playSound(PlayerEntity p_217384_1_,
Entity p_217384_2_,
SoundEvent p_217384_3_,
SoundCategory p_217384_4_,
float p_217384_5_,
float p_217384_6_) |
DynamicRegistries |
registryAccess() |
void |
removeEntity(Entity p_217467_1_,
boolean keepData) |
void |
removeEntityComplete(Entity p_217484_1_,
boolean keepData) |
private void |
removeFromChunk(Entity p_217454_1_) |
void |
removePlayer(ServerPlayerEntity p_217434_1_,
boolean keepData) |
void |
removePlayerImmediately(ServerPlayerEntity p_217434_1_) |
void |
resetEmptyTime() |
private void |
runBlockEvents() |
void |
save(IProgressUpdate p_217445_1_,
boolean p_217445_2_,
boolean p_217445_3_) |
void |
saveDebugReport(java.nio.file.Path p_225322_1_) |
private void |
saveLevelData() |
int |
sectionsToVillage(SectionPos p_217486_1_) |
void |
sendBlockUpdated(BlockPos p_184138_1_,
BlockState p_184138_2_,
BlockState p_184138_3_,
int p_184138_4_) |
private boolean |
sendParticles(ServerPlayerEntity p_195601_1_,
boolean p_195601_2_,
double p_195601_3_,
double p_195601_5_,
double p_195601_7_,
IPacket<?> p_195601_9_) |
<T extends IParticleData> |
sendParticles(ServerPlayerEntity p_195600_1_,
T p_195600_2_,
boolean p_195600_3_,
double p_195600_4_,
double p_195600_6_,
double p_195600_8_,
int p_195600_10_,
double p_195600_11_,
double p_195600_13_,
double p_195600_15_,
double p_195600_17_) |
<T extends IParticleData> |
sendParticles(T p_195598_1_,
double p_195598_2_,
double p_195598_4_,
double p_195598_6_,
int p_195598_8_,
double p_195598_9_,
double p_195598_11_,
double p_195598_13_,
double p_195598_15_) |
boolean |
setChunkForced(int p_217458_1_,
int p_217458_2_,
boolean p_217458_3_) |
void |
setDayTime(long p_241114_1_) |
void |
setDefaultSpawnPos(BlockPos p_241124_1_,
float p_241124_2_) |
void |
setMapData(MapData p_217399_1_) |
void |
setWeatherParameters(int p_241113_1_,
int p_241113_2_,
boolean p_241113_3_,
boolean p_241113_4_) |
java.util.stream.Stream<? extends StructureStart<?>> |
startsForFeature(SectionPos p_241827_1_,
Structure<?> p_241827_2_) |
private void |
stopWeather() |
StructureManager |
structureFeatureManager() |
void |
tick(java.util.function.BooleanSupplier p_72835_1_) |
private void |
tickBlock(NextTickListEntry<Block> p_205338_1_) |
void |
tickChunk(Chunk p_217441_1_,
int p_217441_2_) |
void |
tickCustomSpawners(boolean p_241123_1_,
boolean p_241123_2_) |
private void |
tickLiquid(NextTickListEntry<Fluid> p_205339_1_) |
void |
tickNonPassenger(Entity p_217479_1_) |
void |
tickPassenger(Entity p_217459_1_,
Entity p_217459_2_) |
protected void |
tickTime() |
java.lang.String |
toString() |
boolean |
tryAddFreshEntityWithPassengers(Entity p_242106_1_) |
void |
unload(Chunk p_217466_1_) |
void |
updateChunkPos(Entity p_217464_1_) |
void |
updateSleepingPlayerList() |
private void |
wakeUpAllPlayers() |
addAllPendingBlockEntities, addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntity, addParticle, addParticle, blockEntityChanged, close, createFireworks, destroyBlock, dimension, dimensionType, disconnect, explode, explode, fillReportDetails, gatherChunkSourceStats, getBestNeighborSignal, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getEntitiesOfClass, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getLoadedEntitiesOfClass, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isHumidAt, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isOutsideBuildHeight, isOutsideBuildHeight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, neighborChanged, playLocalSound, playSound, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightness
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFreshEntityWithPassengers
addParticle, dayTime, getCurrentDifficultyAt, getDifficulty, getHeight, getLevelData, getRandom, hasChunk, levelEvent, playSound
getBiomeName, getEntityCollisions, getHeightmapPos, isUnobstructed
getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getLoadedEntitiesOfClass, getLoadedEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestLoadedEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer
isStateAtPosition
destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
getMoonBrightness, getMoonPhase, getTimeOfDay
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getNoiseBiome, getSeaLevel, getSkyDarken, hasChunkAt, hasChunksAt, hasChunksAt, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt
canSeeSky, getBrightness, getLightEngine, getRawBrightness
getBlockCollisions, getBlockCollisions, getCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxBuildHeight, getMaxLightLevel, traverseBlocks
getWorldServer
getMaxEntityRadius, increaseMaxEntityRadius
getCapability, getCapability
public static final BlockPos END_SPAWN_POINT
private static final org.apache.logging.log4j.Logger LOGGER
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Entity> entitiesById
private final java.util.Map<java.util.UUID,Entity> entitiesByUuid
private final java.util.Queue<Entity> toAddAfterTick
private final java.util.List<ServerPlayerEntity> players
private final ServerChunkProvider chunkSource
boolean tickingEntities
private final MinecraftServer server
private final IServerWorldInfo serverLevelData
public boolean noSave
private boolean allPlayersSleeping
private int emptyTime
private final Teleporter portalForcer
private final ServerTickList<Block> blockTicks
private final ServerTickList<Fluid> liquidTicks
private final java.util.Set<PathNavigator> navigations
protected final RaidManager raids
private final it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet<BlockEventData> blockEvents
private boolean handlingTick
private final java.util.List<ISpecialSpawner> customSpawners
@Nullable private final DragonFightManager dragonFight
private final StructureManager structureFeatureManager
private final boolean tickTime
private WorldCapabilityData capabilityData
public ServerWorld(MinecraftServer p_i241885_1_, java.util.concurrent.Executor p_i241885_2_, SaveFormat.LevelSave p_i241885_3_, IServerWorldInfo p_i241885_4_, RegistryKey<World> p_i241885_5_, DimensionType p_i241885_6_, IChunkStatusListener p_i241885_7_, ChunkGenerator p_i241885_8_, boolean p_i241885_9_, long p_i241885_10_, java.util.List<ISpecialSpawner> p_i241885_12_, boolean p_i241885_13_)
public void setWeatherParameters(int p_241113_1_, int p_241113_2_, boolean p_241113_3_, boolean p_241113_4_)
public Biome getUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_)
getUncachedNoiseBiome
in interface IWorldReader
public StructureManager structureFeatureManager()
public void tick(java.util.function.BooleanSupplier p_72835_1_)
protected void tickTime()
public void setDayTime(long p_241114_1_)
public void tickCustomSpawners(boolean p_241123_1_, boolean p_241123_2_)
private void wakeUpAllPlayers()
public void tickChunk(Chunk p_217441_1_, int p_217441_2_)
public boolean isHandlingTick()
public void updateSleepingPlayerList()
public ServerScoreboard getScoreboard()
getScoreboard
in class World
private void stopWeather()
public void resetEmptyTime()
private void tickLiquid(NextTickListEntry<Fluid> p_205339_1_)
private void tickBlock(NextTickListEntry<Block> p_205338_1_)
public void tickNonPassenger(Entity p_217479_1_)
public void updateChunkPos(Entity p_217464_1_)
public boolean mayInteract(PlayerEntity p_175660_1_, BlockPos p_175660_2_)
mayInteract
in class World
public void save(@Nullable IProgressUpdate p_217445_1_, boolean p_217445_2_, boolean p_217445_3_)
private void saveLevelData()
public java.util.List<Entity> getEntities(@Nullable EntityType<?> p_217482_1_, java.util.function.Predicate<? super Entity> p_217482_2_)
public java.util.List<EnderDragonEntity> getDragons()
public java.util.List<ServerPlayerEntity> getPlayers(java.util.function.Predicate<? super ServerPlayerEntity> p_217490_1_)
@Nullable public ServerPlayerEntity getRandomPlayer()
public boolean addFreshEntity(Entity p_217376_1_)
addFreshEntity
in interface IWorldWriter
public boolean addWithUUID(Entity p_217470_1_)
public void addFromAnotherDimension(Entity p_217460_1_)
public void addDuringCommandTeleport(ServerPlayerEntity p_217446_1_)
public void addDuringPortalTeleport(ServerPlayerEntity p_217447_1_)
public void addNewPlayer(ServerPlayerEntity p_217435_1_)
public void addRespawnedPlayer(ServerPlayerEntity p_217433_1_)
private void addPlayer(ServerPlayerEntity p_217448_1_)
private boolean addEntity(Entity p_72838_1_)
public boolean loadFromChunk(Entity p_217440_1_)
private boolean isUUIDUsed(Entity p_217478_1_)
@Nullable private Entity findAddedOrPendingEntity(java.util.UUID p_242105_1_)
public boolean tryAddFreshEntityWithPassengers(Entity p_242106_1_)
public void unload(Chunk p_217466_1_)
@Deprecated public void onEntityRemoved(Entity p_217484_1_)
public void removeEntityComplete(Entity p_217484_1_, boolean keepData)
private void add(Entity p_217465_1_)
public void despawn(Entity p_217467_1_)
public void removeEntity(Entity p_217467_1_, boolean keepData)
private void removeFromChunk(Entity p_217454_1_)
public void removePlayerImmediately(ServerPlayerEntity p_217434_1_)
public void removePlayer(ServerPlayerEntity p_217434_1_, boolean keepData)
public void destroyBlockProgress(int p_175715_1_, BlockPos p_175715_2_, int p_175715_3_)
destroyBlockProgress
in class World
public void playSound(@Nullable PlayerEntity p_184148_1_, double p_184148_2_, double p_184148_4_, double p_184148_6_, SoundEvent p_184148_8_, SoundCategory p_184148_9_, float p_184148_10_, float p_184148_11_)
public void playSound(@Nullable PlayerEntity p_217384_1_, Entity p_217384_2_, SoundEvent p_217384_3_, SoundCategory p_217384_4_, float p_217384_5_, float p_217384_6_)
public void globalLevelEvent(int p_175669_1_, BlockPos p_175669_2_, int p_175669_3_)
globalLevelEvent
in class World
public void levelEvent(@Nullable PlayerEntity p_217378_1_, int p_217378_2_, BlockPos p_217378_3_, int p_217378_4_)
levelEvent
in interface IWorld
public void sendBlockUpdated(BlockPos p_184138_1_, BlockState p_184138_2_, BlockState p_184138_3_, int p_184138_4_)
sendBlockUpdated
in class World
public void broadcastEntityEvent(Entity p_72960_1_, byte p_72960_2_)
broadcastEntityEvent
in class World
public ServerChunkProvider getChunkSource()
getChunkSource
in interface IWorld
public Explosion explode(@Nullable Entity p_230546_1_, @Nullable DamageSource p_230546_2_, @Nullable ExplosionContext p_230546_3_, double p_230546_4_, double p_230546_6_, double p_230546_8_, float p_230546_10_, boolean p_230546_11_, Explosion.Mode p_230546_12_)
public void blockEvent(BlockPos p_175641_1_, Block p_175641_2_, int p_175641_3_, int p_175641_4_)
blockEvent
in class World
private void runBlockEvents()
private boolean doBlockEvent(BlockEventData p_147485_1_)
public ServerTickList<Block> getBlockTicks()
getBlockTicks
in interface IWorld
public ServerTickList<Fluid> getLiquidTicks()
getLiquidTicks
in interface IWorld
@Nonnull public MinecraftServer getServer()
public Teleporter getPortalForcer()
public TemplateManager getStructureManager()
public <T extends IParticleData> int sendParticles(T p_195598_1_, double p_195598_2_, double p_195598_4_, double p_195598_6_, int p_195598_8_, double p_195598_9_, double p_195598_11_, double p_195598_13_, double p_195598_15_)
public <T extends IParticleData> boolean sendParticles(ServerPlayerEntity p_195600_1_, T p_195600_2_, boolean p_195600_3_, double p_195600_4_, double p_195600_6_, double p_195600_8_, int p_195600_10_, double p_195600_11_, double p_195600_13_, double p_195600_15_, double p_195600_17_)
private boolean sendParticles(ServerPlayerEntity p_195601_1_, boolean p_195601_2_, double p_195601_3_, double p_195601_5_, double p_195601_7_, IPacket<?> p_195601_9_)
@Nullable public Entity getEntity(java.util.UUID p_217461_1_)
@Nullable public BlockPos findNearestMapFeature(Structure<?> p_241117_1_, BlockPos p_241117_2_, int p_241117_3_, boolean p_241117_4_)
@Nullable public BlockPos findNearestBiome(Biome p_241116_1_, BlockPos p_241116_2_, int p_241116_3_, int p_241116_4_)
public RecipeManager getRecipeManager()
getRecipeManager
in class World
public ITagCollectionSupplier getTagManager()
getTagManager
in class World
public DynamicRegistries registryAccess()
registryAccess
in interface IBiomeReader
public DimensionSavedDataManager getDataStorage()
@Nullable public MapData getMapData(java.lang.String p_217406_1_)
getMapData
in class World
public void setMapData(MapData p_217399_1_)
setMapData
in class World
public int getFreeMapId()
getFreeMapId
in class World
public void setDefaultSpawnPos(BlockPos p_241124_1_, float p_241124_2_)
public BlockPos getSharedSpawnPos()
public float getSharedSpawnAngle()
public it.unimi.dsi.fastutil.longs.LongSet getForcedChunks()
public boolean setChunkForced(int p_217458_1_, int p_217458_2_, boolean p_217458_3_)
public java.util.List<ServerPlayerEntity> players()
players
in interface IEntityReader
public void onBlockStateChange(BlockPos p_217393_1_, BlockState p_217393_2_, BlockState p_217393_3_)
onBlockStateChange
in class World
public PointOfInterestManager getPoiManager()
public boolean isVillage(BlockPos p_217483_1_)
public boolean isVillage(SectionPos p_222887_1_)
public boolean isCloseToVillage(BlockPos p_241119_1_, int p_241119_2_)
public int sectionsToVillage(SectionPos p_217486_1_)
public RaidManager getRaids()
public boolean isRaided(BlockPos p_217455_1_)
public void onReputationEvent(IReputationType p_217489_1_, Entity p_217489_2_, IReputationTracking p_217489_3_)
public void saveDebugReport(java.nio.file.Path p_225322_1_) throws java.io.IOException
java.io.IOException
private static void dumpEntities(java.io.Writer p_225320_0_, java.lang.Iterable<Entity> p_225320_1_) throws java.io.IOException
java.io.IOException
private void dumpBlockEntities(java.io.Writer p_225321_1_) throws java.io.IOException
java.io.IOException
public void clearBlockEvents(MutableBoundingBox p_229854_1_)
public void blockUpdated(BlockPos p_230547_1_, Block p_230547_2_)
blockUpdated
in interface IWorld
public float getShade(Direction p_230487_1_, boolean p_230487_2_)
getShade
in interface IBlockDisplayReader
public java.lang.Iterable<Entity> getAllEntities()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isFlat()
public long getSeed()
getSeed
in interface ISeedReader
@Nullable public DragonFightManager dragonFight()
public java.util.stream.Stream<? extends StructureStart<?>> startsForFeature(SectionPos p_241827_1_, Structure<?> p_241827_2_)
startsForFeature
in interface ISeedReader
public ServerWorld getLevel()
getLevel
in interface IServerWorld
public java.lang.String getWatchdogStats()
private static <T> java.lang.String getTypeCount(java.util.Collection<T> p_244524_0_, java.util.function.Function<T,ResourceLocation> p_244524_1_)
public static void makeObsidianPlatform(ServerWorld p_241121_0_)
protected void initCapabilities()
public java.util.stream.Stream<Entity> getEntities()