Class PlacementSimulationServerWorld

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
net.minecraft.server.level.ServerLevel
com.simibubi.create.foundation.utility.worldWrappers.WrappedServerWorld
com.simibubi.create.foundation.utility.worldWrappers.PlacementSimulationServerWorld
All Implemented Interfaces:
AutoCloseable, net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.CollisionGetter, net.minecraft.world.level.CommonLevelAccessor, net.minecraft.world.level.EntityGetter, net.minecraft.world.level.LevelAccessor, net.minecraft.world.level.LevelHeightAccessor, net.minecraft.world.level.LevelReader, net.minecraft.world.level.LevelSimulatedReader, net.minecraft.world.level.LevelSimulatedRW, net.minecraft.world.level.LevelTimeAccess, net.minecraft.world.level.LevelWriter, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.level.WorldGenLevel, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>, net.minecraftforge.common.extensions.IForgeBlockGetter, net.minecraftforge.common.extensions.IForgeLevel

public class PlacementSimulationServerWorld extends WrappedServerWorld
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    HashMap<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>
     

    Fields inherited from class com.simibubi.create.foundation.utility.worldWrappers.WrappedServerWorld

    world

    Fields inherited from class net.minecraft.server.level.ServerLevel

    END_SPAWN_POINT, noSave, raids

    Fields inherited from class net.minecraft.world.level.Level

    addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlacementSimulationServerWorld(net.minecraft.server.level.ServerLevel wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos pos)
     
    boolean
    isAreaLoaded(net.minecraft.core.BlockPos center, int range)
     
    boolean
    isLoaded(net.minecraft.core.BlockPos pos)
     
    boolean
    isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> condition)
     
    boolean
    setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags)
     
    boolean
    setBlockAndUpdate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from class net.minecraft.server.level.ServerLevel

    addDuringCommandTeleport, addDuringPortalTeleport, addDuringTeleport, addLegacyChunkEntities, addNewPlayer, addRespawnedPlayer, addWithUUID, addWorldGenChunkEntities, areEntitiesLoaded, blockEvent, blockUpdated, broadcastEntityEvent, canSleepThroughNights, clearBlockEvents, close, dragonFight, explode, findLightningTargetAround, findNearestBiome, findNearestMapFeature, gameEvent, gatherChunkSourceStats, getAllEntities, getChunkSource, getDataStorage, getDragons, getEntities, getEntities, getEntity, getEntityOrPart, getForcedChunks, getLevel, getLogicalHeight, getPlayers, getPoiManager, getPortalForcer, getRaidAt, getRaids, getRandomPlayer, getScoreboard, getSeed, getServer, getShade, getSharedSpawnAngle, getSharedSpawnPos, getStructureManager, getWatchdogStats, globalLevelEvent, initCapabilities, isCloseToVillage, isFlat, isHandlingTick, isNaturalSpawningAllowed, isNaturalSpawningAllowed, isPositionEntityTicking, isRaided, isVillage, isVillage, makeObsidianPlatform, mayInteract, noSave, onBlockStateChange, onReputationEvent, onStructureStartsAvailable, registryAccess, removeEntity, removeEntity, removeEntityComplete, removePlayer, removePlayerImmediately, resetEmptyTime, save, saveDebugReport, sectionsToVillage, sendParticles, sendParticles, sendVibrationParticle, setChunkForced, setDayTime, setDefaultSpawnPos, setWeatherParameters, shouldTickBlocksAt, startTickingChunk, structureFeatureManager, tick, tickChunk, tickCustomSpawners, tickNonPassenger, tickTime, toString, tryAddFreshEntityWithPassengers, unload, updateSleepingPlayerList

    Methods inherited from class net.minecraft.world.level.Level

    addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addFreshBlockEntities, addParticle, addParticle, blockEntityChanged, createFireworks, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, disconnect, explode, explode, fillReportDetails, getBestNeighborSignal, getBiomeManager, getBlockEntity, getBlockRandomPos, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getSignal, getSkyDarken, getThunderLevel, getWorldBorder, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isNight, isRaining, isRainingAt, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, neighborChanged, nextSubTickCount, playLocalSound, playSound, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightness

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter

    canSeeSky, getBrightness, getLightEngine, getRawBrightness

    Methods inherited from interface net.minecraft.world.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.minecraft.world.level.CollisionGetter

    collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision

    Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor

    getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed

    Methods inherited from interface net.minecraft.world.level.EntityGetter

    getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity

    Methods inherited from interface net.minecraft.world.level.LevelAccessor

    addParticle, dayTime, gameEvent, gameEvent, gameEvent, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, hasChunk, levelEvent, nextSubTickCount, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTick

    Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor

    getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight

    Methods inherited from interface net.minecraft.world.level.LevelReader

    canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getSeaLevel, getSkyDarken, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isClientSide, isEmptyBlock, isWaterAt

    Methods inherited from interface net.minecraft.world.level.LevelSimulatedReader

    isFluidAtPosition

    Methods inherited from interface net.minecraft.world.level.LevelTimeAccess

    getMoonBrightness, getMoonPhase, getTimeOfDay

    Methods inherited from interface net.minecraft.world.level.LevelWriter

    destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock

    Methods inherited from interface net.minecraft.world.level.ServerLevelAccessor

    addFreshEntityWithPassengers

    Methods inherited from interface net.minecraft.world.level.WorldGenLevel

    ensureCanWrite, setCurrentlyGenerating
  • Field Details

    • blocksAdded

      public HashMap<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> blocksAdded
  • Constructor Details

    • PlacementSimulationServerWorld

      public PlacementSimulationServerWorld(net.minecraft.server.level.ServerLevel wrapped)
  • Method Details

    • clear

      public void clear()
    • setBlock

      public boolean setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState, int flags)
      Specified by:
      setBlock in interface net.minecraft.world.level.LevelWriter
      Overrides:
      setBlock in class net.minecraft.world.level.Level
    • setBlockAndUpdate

      public boolean setBlockAndUpdate(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      setBlockAndUpdate in class net.minecraft.world.level.Level
    • isStateAtPosition

      public boolean isStateAtPosition(net.minecraft.core.BlockPos pos, Predicate<net.minecraft.world.level.block.state.BlockState> condition)
      Specified by:
      isStateAtPosition in interface net.minecraft.world.level.LevelSimulatedReader
      Overrides:
      isStateAtPosition in class net.minecraft.world.level.Level
    • isLoaded

      public boolean isLoaded(net.minecraft.core.BlockPos pos)
      Overrides:
      isLoaded in class net.minecraft.world.level.Level
    • isAreaLoaded

      public boolean isAreaLoaded(net.minecraft.core.BlockPos center, int range)
    • getBlockState

      public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos pos)
      Specified by:
      getBlockState in interface net.minecraft.world.level.BlockGetter
      Overrides:
      getBlockState in class net.minecraft.world.level.Level