public class DummyWorld
extends net.minecraft.world.server.ServerWorld
| Modifier and Type | Field and Description |
|---|---|
java.util.List<net.minecraft.entity.Entity> |
spawnedEntities |
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 |
|---|
DummyWorld(net.minecraft.world.server.ServerWorld world) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFreshEntity(net.minecraft.entity.Entity entity) |
void |
clearChunks() |
void |
destroyBlockProgress(int breakerId,
net.minecraft.util.math.BlockPos pos,
int progress) |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.Direction direction) |
net.minecraft.entity.Entity |
getEntity(int id) |
int |
getFreeMapId() |
net.minecraft.world.storage.MapData |
getMapData(java.lang.String mapName) |
net.minecraft.item.crafting.RecipeManager |
getRecipeManager() |
net.minecraft.tags.ITagCollectionSupplier |
getTagManager() |
void |
levelEvent(net.minecraft.entity.player.PlayerEntity player,
int type,
net.minecraft.util.math.BlockPos pos,
int data) |
void |
playSound(net.minecraft.entity.player.PlayerEntity player,
double x,
double y,
double z,
net.minecraft.util.SoundEvent soundIn,
net.minecraft.util.SoundCategory category,
float volume,
float pitch) |
void |
playSound(net.minecraft.entity.player.PlayerEntity p_217384_1_,
net.minecraft.entity.Entity p_217384_2_,
net.minecraft.util.SoundEvent p_217384_3_,
net.minecraft.util.SoundCategory p_217384_4_,
float p_217384_5_,
float p_217384_6_) |
void |
sendBlockUpdated(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState oldState,
net.minecraft.block.BlockState newState,
int flags) |
boolean |
setBlock(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
int flags) |
boolean |
setBlockAndUpdate(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
void |
setMapData(net.minecraft.world.storage.MapData mapData) |
addDuringCommandTeleport, addDuringPortalTeleport, addFromAnotherDimension, addNewPlayer, addRespawnedPlayer, addWithUUID, blockEvent, blockUpdated, broadcastEntityEvent, clearBlockEvents, despawn, dragonFight, explode, findLightingTargetAround, findNearestBiome, findNearestMapFeature, getAllEntities, getBlockTicks, getChunkSource, getDataStorage, getDragons, getEntities, getEntities, getEntity, getForcedChunks, getLevel, getLiquidTicks, getPlayers, getPoiManager, getPortalForcer, getRaidAt, getRaids, getRandomPlayer, getScoreboard, getSeed, getServer, getShade, getSharedSpawnAngle, getSharedSpawnPos, getStructureManager, getUncachedNoiseBiome, getWatchdogStats, globalLevelEvent, initCapabilities, isCloseToVillage, isFlat, isHandlingTick, isRaided, isVillage, isVillage, loadFromChunk, makeObsidianPlatform, mayInteract, noSave, onBlockStateChange, onEntityRemoved, onReputationEvent, players, registryAccess, removeEntity, removeEntityComplete, removePlayer, removePlayerImmediately, resetEmptyTime, save, saveDebugReport, sectionsToVillage, sendParticles, sendParticles, setChunkForced, setDayTime, setDefaultSpawnPos, setWeatherParameters, startsForFeature, structureFeatureManager, tick, tickChunk, tickCustomSpawners, tickNonPassenger, tickPassenger, tickTime, toString, tryAddFreshEntityWithPassengers, unload, updateChunkPos, updateSleepingPlayerListaddAllPendingBlockEntities, 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, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddParticle, dayTime, getCurrentDifficultyAt, getDifficulty, getHeight, getLevelData, getRandom, hasChunk, levelEvent, playSoundgetBiomeName, getEntityCollisions, getHeightmapPos, isUnobstructedgetEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getLoadedEntitiesOfClass, getLoadedEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestLoadedEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerisStateAtPositiondestroyBlock, destroyBlock, destroyBlock, removeBlock, setBlockgetMoonBrightness, getMoonPhase, getTimeOfDaycanSeeSkyFromBelowWater, 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, isWaterAtcanSeeSky, getBrightness, getLightEngine, getRawBrightnessgetBlockCollisions, getBlockCollisions, getCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollisionclip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxBuildHeight, getMaxLightLevel, traverseBlocksgetWorldServerpublic void clearChunks()
@Nullable public net.minecraft.entity.Entity getEntity(int id)
getEntity in class net.minecraft.world.server.ServerWorld@Nullable public net.minecraft.world.storage.MapData getMapData(java.lang.String mapName)
getMapData in class net.minecraft.world.server.ServerWorldpublic void setMapData(net.minecraft.world.storage.MapData mapData)
setMapData in class net.minecraft.world.server.ServerWorldpublic int getFreeMapId()
getFreeMapId in class net.minecraft.world.server.ServerWorldpublic void destroyBlockProgress(int breakerId,
net.minecraft.util.math.BlockPos pos,
int progress)
destroyBlockProgress in class net.minecraft.world.server.ServerWorldpublic net.minecraft.item.crafting.RecipeManager getRecipeManager()
getRecipeManager in class net.minecraft.world.server.ServerWorldpublic net.minecraft.tags.ITagCollectionSupplier getTagManager()
getTagManager in class net.minecraft.world.server.ServerWorldpublic boolean setBlock(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
int flags)
setBlock in interface net.minecraft.world.IWorldWritersetBlock in class net.minecraft.world.Worldpublic boolean setBlockAndUpdate(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state)
setBlockAndUpdate in class net.minecraft.world.Worldpublic void sendBlockUpdated(net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState oldState,
net.minecraft.block.BlockState newState,
int flags)
sendBlockUpdated in class net.minecraft.world.server.ServerWorldpublic void playSound(@Nullable
net.minecraft.entity.player.PlayerEntity player,
double x,
double y,
double z,
net.minecraft.util.SoundEvent soundIn,
net.minecraft.util.SoundCategory category,
float volume,
float pitch)
playSound in class net.minecraft.world.server.ServerWorldpublic void playSound(@Nullable
net.minecraft.entity.player.PlayerEntity p_217384_1_,
net.minecraft.entity.Entity p_217384_2_,
net.minecraft.util.SoundEvent p_217384_3_,
net.minecraft.util.SoundCategory p_217384_4_,
float p_217384_5_,
float p_217384_6_)
playSound in class net.minecraft.world.server.ServerWorldpublic boolean addFreshEntity(net.minecraft.entity.Entity entity)
addFreshEntity in interface net.minecraft.world.IWorldWriteraddFreshEntity in class net.minecraft.world.server.ServerWorld@Nullable
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
@Nullable
net.minecraft.util.Direction direction)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.World>public void levelEvent(@Nullable
net.minecraft.entity.player.PlayerEntity player,
int type,
net.minecraft.util.math.BlockPos pos,
int data)
levelEvent in interface net.minecraft.world.IWorldlevelEvent in class net.minecraft.world.server.ServerWorld