public class ClientWorld extends World
addedTileEntityList, captureBlockSnapshots, capturedBlockSnapshots, chunkProvider, dimension, DIST_HASH_MAGIC, isRemote, loadedTileEntityList, LOGGER, prevRainingStrength, prevThunderingStrength, processingLoadedTiles, rainingStrength, rand, restoringBlockSnapshots, thunderingStrength, tickableTileEntities, tileEntitiesToBeRemoved, updateLCG, worldInfo
コンストラクタと説明 |
---|
ClientWorld(ClientPlayNetHandler netHandler,
WorldSettings worldSettingsIn,
DimensionType dimType,
int viewDistance,
IProfiler profilerIn,
WorldRenderer worldRendererIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addEntitiesToChunk(Chunk chunkIn) |
void |
addEntity(int entityIdIn,
Entity entityToSpawn) |
void |
addLightning(LightningBoltEntity entityIn) |
void |
addOptionalParticle(IParticleData particleData,
boolean ignoreRange,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addOptionalParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
boolean forceAlwaysRender,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
void |
addPlayer(int playerId,
AbstractClientPlayerEntity playerEntityIn) |
void |
animateTick(int posX,
int posY,
int posZ) |
void |
animateTick(int x,
int y,
int z,
int offset,
java.util.Random random,
boolean holdingBarrier,
BlockPos.Mutable pos) |
void |
checkChunk(Entity entityIn) |
boolean |
chunkExists(int chunkX,
int chunkZ) |
void |
clearColorCaches() |
CrashReportCategory |
fillCrashReport(CrashReport report)
Adds some basic stats of the world to the given crash report.
|
java.lang.Iterable<Entity> |
getAllEntities() |
int |
getBlockColor(BlockPos blockPosIn,
ColorResolver colorResolverIn) |
int |
getBlockColorRaw(BlockPos blockPosIn,
ColorResolver colorResolverIn) |
ClientChunkProvider |
getChunkProvider()
Gets the world's chunk provider
|
Vec3d |
getCloudColor(float partialTicks) |
int |
getCountLoadedEntities() |
Entity |
getEntityByID(int id)
Returns the Entity with the given ID, or null if it doesn't exist in this World.
|
Vec3d |
getFogColor(float partialTicks) |
double |
getHorizonHeight() |
MapData |
getMapData(java.lang.String mapName) |
int |
getNextMapId() |
Biome |
getNoiseBiomeRaw(int x,
int y,
int z) |
ITickList<Block> |
getPendingBlockTicks() |
ITickList<Fluid> |
getPendingFluidTicks() |
java.util.List<AbstractClientPlayerEntity> |
getPlayers() |
RecipeManager |
getRecipeManager() |
Scoreboard |
getScoreboard() |
Vec3d |
getSkyColor(BlockPos blockPosIn,
float partialTicks) |
float |
getStarBrightness(float partialTicks) |
float |
getSunBrightness(float partialTicks) |
NetworkTagManager |
getTags() |
int |
getTimeLightningFlash() |
void |
invalidateRegionAndSetBlock(BlockPos pos,
BlockState state) |
void |
makeFireworks(double x,
double y,
double z,
double motionX,
double motionY,
double motionZ,
CompoundNBT compound) |
void |
markBlockRangeForRenderUpdate(BlockPos blockPosIn,
BlockState oldState,
BlockState newState) |
void |
markSurroundingsForRerender(int sectionX,
int sectionY,
int sectionZ) |
void |
notifyBlockUpdate(BlockPos pos,
BlockState oldState,
BlockState newState,
int flags)
Flags are as in setBlockState
|
void |
onChunkLoaded(int chunkX,
int chunkZ) |
void |
onChunkUnloaded(Chunk chunkIn) |
void |
playBroadcastSound(int id,
BlockPos pos,
int data) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
playMovingSound(PlayerEntity playerIn,
Entity entityIn,
SoundEvent eventIn,
SoundCategory categoryIn,
float volume,
float pitch) |
void |
playSound(BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch,
boolean distanceDelay) |
void |
playSound(double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch,
boolean distanceDelay) |
void |
playSound(PlayerEntity player,
double x,
double y,
double z,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
void |
registerMapData(MapData mapDataIn) |
void |
removeAllEntities()
also releases skins.
|
void |
removeEntityFromWorld(int eid) |
void |
sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress) |
void |
sendPacketToServer(IPacket<?> packetIn) |
void |
sendQuittingDisconnectingPacket()
If on MP, sends a quitting packet.
|
void |
setDayTime(long time)
Sets the world time.
|
void |
setScoreboard(Scoreboard scoreboardIn) |
void |
setTimeLightningFlash(int timeFlashIn) |
void |
tick(java.util.function.BooleanSupplier hasTimeLeft)
Runs a single tick for the world
|
void |
tickEntities() |
void |
updateEntity(Entity entityIn) |
void |
updateEntityRidden(Entity p_217420_1_,
Entity p_217420_2_) |
addBlockEvent, addTileEntities, addTileEntity, advanceTime, calculateInitialSkylight, calculateInitialWeather, calculateInitialWeatherBody, canMineBlockBody, checkBlockCollision, close, createExplosion, createExplosion, createExplosion, destroyBlock, extinguishFire, findBlockstateInArea, getActualHeight, getBiomeManager, getBlockRandomPos, getBlockReader, getBlockState, getCelestialAngleRadians, getChunk, getChunk, getChunkAt, getDayTime, getDifficultyForLocation, getDimension, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getFluidState, getGameRules, getGameTime, getGroundAboveSeaLevel, getHeight, getLightManager, getLoadedEntitiesWithinAABB, getMaxEntityRadius, getProfiler, getProviderName, getRainStrength, getRandom, getRedstonePower, getRedstonePowerFromNeighbors, getSeaLevel, getSeed, getServer, getSkylightSubtracted, getSpawnPoint, getStrongPower, getThunderStrength, getTileEntity, getWorld, getWorldBorder, getWorldInfo, getWorldType, guardEntityTick, hasBlockState, increaseMaxEntityRadius, isBlockinHighHumidity, isBlockModifiable, isBlockPowered, isBlockPresent, isDaytime, isFlammableWithin, isMaterialInBB, isNightTime, isOutsideBuildHeight, isRaining, isRainingAt, isRemote, isSaveDisabled, isSidePowered, isThundering, isTopSolid, isValid, isYOutOfBounds, markAndNotifyBlock, markChunkDirty, neighborChanged, notifyNeighbors, notifyNeighborsOfStateChange, notifyNeighborsOfStateExcept, onBlockStateChange, playSound, removeBlock, removeTileEntity, setAllowedSpawnTypes, setBlockState, setBlockState, setEntityState, setGameTime, setInitialSpawnLocation, setRainStrength, setSpawnPoint, setThunderStrength, setTileEntity, tickBlockEntities, updateComparatorOutputLevel
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNoEntityCollision, getCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getHeight, getMoonPhase, playEvent
func_225317_b, func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithin
canBlockSeeSky, containsAnyLiquid, getBiome, getBrightness, getChunk, getChunk, getLight, getNeighborAwareLightSubtracted, getNoiseBiome, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded
canSeeSky, getLightFor, getLightSubtracted
checkNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisions
func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocks
getMaxHeight
addEntity, destroyBlock
getCapability, getCapability
public ClientWorld(ClientPlayNetHandler netHandler, WorldSettings worldSettingsIn, DimensionType dimType, int viewDistance, IProfiler profilerIn, WorldRenderer worldRendererIn)
public void tick(java.util.function.BooleanSupplier hasTimeLeft)
public java.lang.Iterable<Entity> getAllEntities()
public void tickEntities()
public void updateEntity(Entity entityIn)
public void checkChunk(Entity entityIn)
public void onChunkUnloaded(Chunk chunkIn)
public void onChunkLoaded(int chunkX, int chunkZ)
public void clearColorCaches()
public boolean chunkExists(int chunkX, int chunkZ)
public int getCountLoadedEntities()
public void addLightning(LightningBoltEntity entityIn)
public void addPlayer(int playerId, AbstractClientPlayerEntity playerEntityIn)
public void addEntity(int entityIdIn, Entity entityToSpawn)
public void removeEntityFromWorld(int eid)
public void addEntitiesToChunk(Chunk chunkIn)
@Nullable public Entity getEntityByID(int id)
getEntityByID
クラス内 World
public void invalidateRegionAndSetBlock(BlockPos pos, BlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket
クラス内 World
public void animateTick(int posX, int posY, int posZ)
public void animateTick(int x, int y, int z, int offset, java.util.Random random, boolean holdingBarrier, BlockPos.Mutable pos)
public void removeAllEntities()
public CrashReportCategory fillCrashReport(CrashReport report)
fillCrashReport
クラス内 World
public void playSound(@Nullable PlayerEntity player, double x, double y, double z, SoundEvent soundIn, SoundCategory category, float volume, float pitch)
public void playMovingSound(@Nullable PlayerEntity playerIn, Entity entityIn, SoundEvent eventIn, SoundCategory categoryIn, float volume, float pitch)
playMovingSound
クラス内 World
public void playSound(BlockPos pos, SoundEvent soundIn, SoundCategory category, float volume, float pitch, boolean distanceDelay)
public void playSound(double x, double y, double z, SoundEvent soundIn, SoundCategory category, float volume, float pitch, boolean distanceDelay)
public void makeFireworks(double x, double y, double z, double motionX, double motionY, double motionZ, @Nullable CompoundNBT compound)
makeFireworks
クラス内 World
public void sendPacketToServer(IPacket<?> packetIn)
sendPacketToServer
クラス内 World
public RecipeManager getRecipeManager()
getRecipeManager
クラス内 World
public void setScoreboard(Scoreboard scoreboardIn)
public void setDayTime(long time)
setDayTime
クラス内 World
public ClientChunkProvider getChunkProvider()
getChunkProvider
インタフェース内 IWorld
getChunkProvider
クラス内 World
@Nullable public MapData getMapData(java.lang.String mapName)
getMapData
クラス内 World
public void registerMapData(MapData mapDataIn)
registerMapData
クラス内 World
public int getNextMapId()
getNextMapId
クラス内 World
public Scoreboard getScoreboard()
getScoreboard
クラス内 World
public NetworkTagManager getTags()
public void notifyBlockUpdate(BlockPos pos, BlockState oldState, BlockState newState, int flags)
notifyBlockUpdate
クラス内 World
public void markBlockRangeForRenderUpdate(BlockPos blockPosIn, BlockState oldState, BlockState newState)
markBlockRangeForRenderUpdate
クラス内 World
public void markSurroundingsForRerender(int sectionX, int sectionY, int sectionZ)
public void sendBlockBreakProgress(int breakerId, BlockPos pos, int progress)
sendBlockBreakProgress
クラス内 World
public void playBroadcastSound(int id, BlockPos pos, int data)
playBroadcastSound
クラス内 World
public void playEvent(@Nullable PlayerEntity player, int type, BlockPos pos, int data)
public void addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle
インタフェース内 IWorld
addParticle
クラス内 World
public void addParticle(IParticleData particleData, boolean forceAlwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle
クラス内 World
public void addOptionalParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addOptionalParticle
クラス内 World
public void addOptionalParticle(IParticleData particleData, boolean ignoreRange, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addOptionalParticle
クラス内 World
public java.util.List<AbstractClientPlayerEntity> getPlayers()
public Biome getNoiseBiomeRaw(int x, int y, int z)
public float getSunBrightness(float partialTicks)
public Vec3d getCloudColor(float partialTicks)
public Vec3d getFogColor(float partialTicks)
public float getStarBrightness(float partialTicks)
public double getHorizonHeight()
public int getTimeLightningFlash()
public void setTimeLightningFlash(int timeFlashIn)
setTimeLightningFlash
クラス内 World
public int getBlockColor(BlockPos blockPosIn, ColorResolver colorResolverIn)
public int getBlockColorRaw(BlockPos blockPosIn, ColorResolver colorResolverIn)