public interface IWorld extends IEntityReader, IWorldReader, IWorldGenerationReader
| Modifier and Type | Method and Description |
|---|---|
void |
addParticle(IParticleData particleData,
double x,
double y,
double z,
double xSpeed,
double ySpeed,
double zSpeed) |
default boolean |
checkNoEntityCollision(Entity entityIn,
VoxelShape shape) |
default boolean |
chunkExists(int chunkX,
int chunkZ) |
default float |
getCelestialAngle(float partialTicks) |
AbstractChunkProvider |
getChunkProvider() |
default float |
getCurrentMoonPhaseFactor() |
default Difficulty |
getDifficulty() |
DifficultyInstance |
getDifficultyForLocation(BlockPos pos) |
default java.util.stream.Stream<VoxelShape> |
getEmptyCollisionShapes(Entity entityIn,
AxisAlignedBB aabb,
java.util.Set<Entity> entitiesToIgnore) |
default int |
getMoonPhase() |
ITickList<Block> |
getPendingBlockTicks() |
ITickList<Fluid> |
getPendingFluidTicks() |
java.util.Random |
getRandom() |
long |
getSeed() |
BlockPos |
getSpawnPoint() |
World |
getWorld() |
WorldInfo |
getWorldInfo() |
void |
notifyNeighbors(BlockPos pos,
Block blockIn) |
default void |
playEvent(int type,
BlockPos pos,
int data) |
void |
playEvent(PlayerEntity player,
int type,
BlockPos pos,
int data) |
void |
playSound(PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch) |
func_225316_b, func_225317_b, func_225318_b, getClosestEntity, getClosestEntityWithinAABB, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesInAABBexcluding, getEntitiesWithinAABB, getEntitiesWithinAABB, getEntitiesWithinAABBExcludingEntity, getPlayerByUuid, getPlayers, getTargettableEntitiesWithinAABB, getTargettablePlayersWithinAABB, isPlayerWithinareCollisionShapesEmpty, areCollisionShapesEmpty, canBlockSeeSky, checkNoEntityCollision, containsAnyLiquid, func_217350_a, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkStatus, getCollisionShapes, getCollisionShapes, getDimension, getHeight, getHeight, getLight, getLightSubtracted, getNeighborAwareLightSubtracted, getSeaLevel, getSkylightSubtracted, getStrongPower, getWorldBorder, hasWater, isAirBlock, isAreaLoaded, isAreaLoaded, isAreaLoaded, isBlockLoaded, isCollisionBoxesEmpty, isCollisionBoxesEmpty, isRemotegetBiome, getCombinedLight, getLightFor, isSkyLightMaxfunc_217296_a, func_217300_a, getBlockState, getFluidState, getHeight, getLightValue, getMaxLightLevel, getTileEntity, rayTraceBlocksgetHeight, getMaxHeight, hasBlockStateaddEntity, destroyBlock, removeBlock, setBlockStatelong getSeed()
default float getCurrentMoonPhaseFactor()
default float getCelestialAngle(float partialTicks)
default int getMoonPhase()
World getWorld()
WorldInfo getWorldInfo()
DifficultyInstance getDifficultyForLocation(BlockPos pos)
default Difficulty getDifficulty()
AbstractChunkProvider getChunkProvider()
default boolean chunkExists(int chunkX,
int chunkZ)
chunkExists in interface IWorldReaderjava.util.Random getRandom()
BlockPos getSpawnPoint()
void playSound(@Nullable
PlayerEntity player,
BlockPos pos,
SoundEvent soundIn,
SoundCategory category,
float volume,
float pitch)
void addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed)
void playEvent(@Nullable
PlayerEntity player,
int type,
BlockPos pos,
int data)
default void playEvent(int type,
BlockPos pos,
int data)
default java.util.stream.Stream<VoxelShape> getEmptyCollisionShapes(@Nullable Entity entityIn, AxisAlignedBB aabb, java.util.Set<Entity> entitiesToIgnore)
getEmptyCollisionShapes in interface IEntityReadergetEmptyCollisionShapes in interface IWorldReaderdefault boolean checkNoEntityCollision(@Nullable
Entity entityIn,
VoxelShape shape)
checkNoEntityCollision in interface IEntityReadercheckNoEntityCollision in interface IWorldReader