Class WrappedServerLevel
java.lang.Object
net.minecraft.world.level.Level
net.minecraft.server.level.ServerLevel
net.createmod.catnip.utility.levelWrappers.WrappedServerLevel
- All Implemented Interfaces:
io.github.fabricators_of_create.porting_lib.entity.ext.LevelExt,io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions,io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelReaderExtensions,AutoCloseable,net.fabricmc.fabric.api.attachment.v1.AttachmentTarget,net.fabricmc.fabric.api.blockview.v2.FabricBlockView,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.SignalGetter,net.minecraft.world.level.WorldGenLevel
- Direct Known Subclasses:
PlacementSimulationServerLevel
public class WrappedServerLevel
extends net.minecraft.server.level.ServerLevel
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteractionNested classes/interfaces inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions
io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions.ChangedPosData, io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions.LevelSnapshotData -
Field Summary
FieldsFields inherited from class net.minecraft.server.level.ServerLevel
END_SPAWN_POINT, noSave, raids, RAIN_DELAY, RAIN_DURATION, THUNDER_DURATIONFields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, neighborUpdater, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAYFields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
NBT_ATTACHMENT_KEYFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddFreshEntity(net.minecraft.world.entity.Entity entityIn) voiddestroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.block.Block> net.minecraft.world.entity.EntitygetEntity(int id) net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.material.Fluid> net.minecraft.world.level.saveddata.maps.MapIdnet.minecraft.world.level.saveddata.maps.MapItemSavedDatagetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId) intgetMaxLocalRawBrightness(net.minecraft.core.BlockPos pos) net.minecraft.world.item.crafting.RecipeManagerfloatgetSunAngle(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_) voidlevelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) List<net.minecraft.server.level.ServerPlayer> players()voidplaySound(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) voidplaySound(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_) voidsendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags) voidsetMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapData) Methods inherited from class net.minecraft.server.level.ServerLevel
addDuringTeleport, addLegacyChunkEntities, addNewPlayer, addRespawnedPlayer, addWithUUID, addWorldGenChunkEntities, areEntitiesLoaded, blockEvent, blockUpdated, broadcastDamageEvent, broadcastEntityEvent, canSleepThroughNights, clearBlockEvents, close, enabledFeatures, explode, fillReportDetails, findClosestBiome3d, findLightningTargetAround, findNearestMapStructure, gameEvent, gatherChunkSourceStats, getAllEntities, getChunkSource, getDataStorage, getDragonFight, getDragons, getEntities, getEntities, getEntities, getEntities, getEntity, getEntityOrPart, getForcedChunks, getLevel, getLogicalHeight, getPathTypeCache, getPlayers, getPlayers, getPoiManager, getPortalForcer, getRaidAt, getRaids, getRandomPlayer, getRandomSequence, getRandomSequences, getScoreboard, getSeed, getServer, getShade, getStructureManager, getWatchdogStats, globalLevelEvent, isCloseToVillage, isFlat, isHandlingTick, isNaturalSpawningAllowed, isNaturalSpawningAllowed, isPositionEntityTicking, isRaided, isVillage, isVillage, mayInteract, neighborChanged, neighborChanged, noSave, onBlockStateChange, onReputationEvent, onStructureStartsAvailable, playSeededSound, playSeededSound, potionBrewing, removePlayerImmediately, resetEmptyTime, resetWeatherCycle, save, saveDebugReport, sectionsToVillage, sendParticles, sendParticles, sendParticles, setChunkForced, setDayTime, setDefaultSpawnPos, setDragonFight, setWeatherParameters, shouldTickBlocksAt, startTickingChunk, structureManager, tick, tickChunk, tickCustomSpawners, tickNonPassenger, tickPrecipitation, tickRateManager, tickTime, toString, tryAddFreshEntityWithPassengers, unload, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateSleepingPlayerListMethods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addParticle, addParticle, blockEntityChanged, createFireworks, damageSources, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, disconnect, explode, explode, explode, explode, explode, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getThunderLevel, getWorldBorder, guardEntityTick, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, neighborShapeChanged, nextSubTickCount, playLocalSound, playLocalSound, playLocalSound, playSeededSound, playSound, playSound, playSound, playSound, prepareWeather, registryAccess, removeBlock, removeBlockEntity, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighbourForOutputSignal, updateSkyBrightnessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, removeAttached, setAttachedMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.minecraft.world.level.CommonLevelAccessor
getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructedMethods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.fabricmc.fabric.api.blockview.v2.FabricBlockView
getBiomeFabric, getBlockEntityRenderData, hasBiomesMethods inherited from interface net.minecraft.world.level.LevelAccessor
addParticle, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getCurrentDifficultyAt, getDifficulty, getLevelData, getRandom, hasChunk, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface io.github.fabricators_of_create.porting_lib.entity.ext.LevelExt
getPartEntities, getPartEntityMapMethods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelExtensions
addFreshBlockEntities, markAndNotifyBlock, snapshotParticipant, updateSnapshotsMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccessMethods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.LevelReaderExtensions
isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlockMethods inherited from interface net.minecraft.world.level.ServerLevelAccessor
addFreshEntityWithPassengersMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignalMethods inherited from interface net.minecraft.world.level.WorldGenLevel
ensureCanWrite, setCurrentlyGenerating
-
Field Details
-
level
protected net.minecraft.server.level.ServerLevel level
-
-
Constructor Details
-
WrappedServerLevel
public WrappedServerLevel(net.minecraft.server.level.ServerLevel level)
-
-
Method Details
-
getSunAngle
public float getSunAngle(float p_72826_1_) - Overrides:
getSunAnglein classnet.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:
sendBlockUpdatedin classnet.minecraft.server.level.ServerLevel
-
getBlockTicks
public net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.block.Block> getBlockTicks()- Specified by:
getBlockTicksin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getBlockTicksin classnet.minecraft.server.level.ServerLevel
-
getFluidTicks
public net.minecraft.world.ticks.LevelTicks<net.minecraft.world.level.material.Fluid> getFluidTicks()- Specified by:
getFluidTicksin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
getFluidTicksin classnet.minecraft.server.level.ServerLevel
-
levelEvent
public void levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data) - Specified by:
levelEventin interfacenet.minecraft.world.level.LevelAccessor- Overrides:
levelEventin classnet.minecraft.server.level.ServerLevel
-
players
- Specified by:
playersin interfacenet.minecraft.world.level.EntityGetter- Overrides:
playersin classnet.minecraft.server.level.ServerLevel
-
playSound
public void playSound(@Nullable 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:
playSoundin classnet.minecraft.world.level.Level
-
playSound
public void playSound(@Nullable 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:
playSoundin classnet.minecraft.world.level.Level
-
getEntity
public net.minecraft.world.entity.Entity getEntity(int id) - Overrides:
getEntityin classnet.minecraft.server.level.ServerLevel
-
getMapData
@Nullable public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(net.minecraft.world.level.saveddata.maps.MapId mapId) - Overrides:
getMapDatain classnet.minecraft.server.level.ServerLevel
-
addFreshEntity
public boolean addFreshEntity(net.minecraft.world.entity.Entity entityIn) - Specified by:
addFreshEntityin interfacenet.minecraft.world.level.LevelWriter- Overrides:
addFreshEntityin classnet.minecraft.server.level.ServerLevel
-
setMapData
public void setMapData(net.minecraft.world.level.saveddata.maps.MapId mapId, net.minecraft.world.level.saveddata.maps.MapItemSavedData mapData) - Overrides:
setMapDatain classnet.minecraft.server.level.ServerLevel
-
getFreeMapId
public net.minecraft.world.level.saveddata.maps.MapId getFreeMapId()- Overrides:
getFreeMapIdin classnet.minecraft.server.level.ServerLevel
-
destroyBlockProgress
public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress) - Overrides:
destroyBlockProgressin classnet.minecraft.server.level.ServerLevel
-
getRecipeManager
public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()- Overrides:
getRecipeManagerin classnet.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:
getUncachedNoiseBiomein interfacenet.minecraft.world.level.LevelReader- Overrides:
getUncachedNoiseBiomein classnet.minecraft.server.level.ServerLevel
-