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, updateComparatorOutputLevelareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNoEntityCollision, getCelestialAngle, getCurrentMoonPhaseFactor, getDifficulty, getEmptyCollisionShapes, getHeight, getMoonPhase, playEventfunc_225317_b, func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getPlayerByUuid, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithincanBlockSeeSky, containsAnyLiquid, getBiome, getBrightness, getChunk, getChunk, getLight, getNeighborAwareLightSubtracted, getNoiseBiome, getStrongPower, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoadedcanSeeSky, getLightFor, getLightSubtractedcheckNoEntityCollision, func_226663_a_, getCollisionShapes, getCollisionShapes, hasNoCollisions, hasNoCollisions, hasNoCollisions, hasNoCollisionsfunc_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocksgetMaxHeightaddEntity, destroyBlockgetCapability, getCapabilitypublic 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 クラス内 Worldpublic void invalidateRegionAndSetBlock(BlockPos pos, BlockState state)
public void sendQuittingDisconnectingPacket()
sendQuittingDisconnectingPacket クラス内 Worldpublic 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 クラス内 Worldpublic 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 クラス内 Worldpublic 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 クラス内 Worldpublic void sendPacketToServer(IPacket<?> packetIn)
sendPacketToServer クラス内 Worldpublic RecipeManager getRecipeManager()
getRecipeManager クラス内 Worldpublic void setScoreboard(Scoreboard scoreboardIn)
public void setDayTime(long time)
setDayTime クラス内 Worldpublic ClientChunkProvider getChunkProvider()
getChunkProvider インタフェース内 IWorldgetChunkProvider クラス内 World@Nullable public MapData getMapData(java.lang.String mapName)
getMapData クラス内 Worldpublic void registerMapData(MapData mapDataIn)
registerMapData クラス内 Worldpublic int getNextMapId()
getNextMapId クラス内 Worldpublic Scoreboard getScoreboard()
getScoreboard クラス内 Worldpublic NetworkTagManager getTags()
public void notifyBlockUpdate(BlockPos pos, BlockState oldState, BlockState newState, int flags)
notifyBlockUpdate クラス内 Worldpublic void markBlockRangeForRenderUpdate(BlockPos blockPosIn, BlockState oldState, BlockState newState)
markBlockRangeForRenderUpdate クラス内 Worldpublic void markSurroundingsForRerender(int sectionX,
int sectionY,
int sectionZ)
public void sendBlockBreakProgress(int breakerId,
BlockPos pos,
int progress)
sendBlockBreakProgress クラス内 Worldpublic void playBroadcastSound(int id,
BlockPos pos,
int data)
playBroadcastSound クラス内 Worldpublic 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 インタフェース内 IWorldaddParticle クラス内 Worldpublic void addParticle(IParticleData particleData, boolean forceAlwaysRender, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addParticle クラス内 Worldpublic void addOptionalParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addOptionalParticle クラス内 Worldpublic void addOptionalParticle(IParticleData particleData, boolean ignoreRange, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
addOptionalParticle クラス内 Worldpublic 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 クラス内 Worldpublic int getBlockColor(BlockPos blockPosIn, ColorResolver colorResolverIn)
public int getBlockColorRaw(BlockPos blockPosIn, ColorResolver colorResolverIn)