Class WrappedServerWorld

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
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
Direct Known Subclasses:
PlacementSimulationServerWorld

@ParametersAreNonnullByDefault public class WrappedServerWorld extends net.minecraft.server.level.ServerLevel
  • 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
    protected net.minecraft.world.level.Level
     

    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
    WrappedServerWorld(net.minecraft.world.level.Level world)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addFreshEntity(net.minecraft.world.entity.Entity entityIn)
     
    void
    destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
     
    net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.block.Block>
     
    net.minecraft.world.entity.Entity
    getEntity(int id)
     
    net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.material.Fluid>
     
    int
     
    net.minecraft.world.level.saveddata.maps.MapItemSavedData
    getMapData(String mapName)
     
    int
    getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.item.crafting.RecipeManager
     
    float
    getSunAngle(float p_72826_1_)
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_)
     
    void
    levelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
     
    List<net.minecraft.server.level.ServerPlayer>
     
    void
    playSound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource category, float volume, float pitch)
     
    void
    playSound(net.minecraft.world.entity.player.Player p_217384_1_, net.minecraft.world.entity.Entity p_217384_2_, net.minecraft.sounds.SoundEvent p_217384_3_, net.minecraft.sounds.SoundSource p_217384_4_, float p_217384_5_, float p_217384_6_)
     
    void
    sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags)
     
    void
    setMapData(String mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapDataIn)
     

    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, getBlockState, 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, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, neighborChanged, nextSubTickCount, playLocalSound, playSound, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, 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, getBlockState, 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, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt

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

    isFluidAtPosition, isStateAtPosition

    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, setBlock

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

    addFreshEntityWithPassengers

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

    ensureCanWrite, setCurrentlyGenerating
  • Field Details

    • world

      protected net.minecraft.world.level.Level world
  • Constructor Details

    • WrappedServerWorld

      public WrappedServerWorld(net.minecraft.world.level.Level world)
  • Method Details

    • getSunAngle

      public float getSunAngle(float p_72826_1_)
      Overrides:
      getSunAngle in class net.minecraft.world.level.Level
    • getMaxLocalRawBrightness

      public int getMaxLocalRawBrightness(net.minecraft.core.BlockPos pos)
    • sendBlockUpdated

      public void sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags)
      Overrides:
      sendBlockUpdated in class net.minecraft.server.level.ServerLevel
    • getBlockTicks

      public net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.block.Block> getBlockTicks()
      Specified by:
      getBlockTicks in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      getBlockTicks in class net.minecraft.server.level.ServerLevel
    • getFluidTicks

      public net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.material.Fluid> getFluidTicks()
      Specified by:
      getFluidTicks in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      getFluidTicks in class net.minecraft.server.level.ServerLevel
    • levelEvent

      public void levelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
      Specified by:
      levelEvent in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      levelEvent in class net.minecraft.server.level.ServerLevel
    • players

      public List<net.minecraft.server.level.ServerPlayer> players()
      Specified by:
      players in interface net.minecraft.world.level.EntityGetter
      Overrides:
      players in class net.minecraft.server.level.ServerLevel
    • playSound

      public void playSound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource category, float volume, float pitch)
      Overrides:
      playSound in class net.minecraft.server.level.ServerLevel
    • playSound

      public void playSound(net.minecraft.world.entity.player.Player p_217384_1_, net.minecraft.world.entity.Entity p_217384_2_, net.minecraft.sounds.SoundEvent p_217384_3_, net.minecraft.sounds.SoundSource p_217384_4_, float p_217384_5_, float p_217384_6_)
      Overrides:
      playSound in class net.minecraft.server.level.ServerLevel
    • getEntity

      public net.minecraft.world.entity.Entity getEntity(int id)
      Overrides:
      getEntity in class net.minecraft.server.level.ServerLevel
    • getMapData

      public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(String mapName)
      Overrides:
      getMapData in class net.minecraft.server.level.ServerLevel
    • addFreshEntity

      public boolean addFreshEntity(net.minecraft.world.entity.Entity entityIn)
      Specified by:
      addFreshEntity in interface net.minecraft.world.level.LevelWriter
      Overrides:
      addFreshEntity in class net.minecraft.server.level.ServerLevel
    • setMapData

      public void setMapData(String mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapDataIn)
      Overrides:
      setMapData in class net.minecraft.server.level.ServerLevel
    • getFreeMapId

      public int getFreeMapId()
      Overrides:
      getFreeMapId in class net.minecraft.server.level.ServerLevel
    • destroyBlockProgress

      public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
      Overrides:
      destroyBlockProgress in class net.minecraft.server.level.ServerLevel
    • getRecipeManager

      public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()
      Overrides:
      getRecipeManager in class net.minecraft.server.level.ServerLevel
    • getUncachedNoiseBiome

      public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getUncachedNoiseBiome(int p_225604_1_, int p_225604_2_, int p_225604_3_)
      Specified by:
      getUncachedNoiseBiome in interface net.minecraft.world.level.LevelReader
      Overrides:
      getUncachedNoiseBiome in class net.minecraft.server.level.ServerLevel