Class ServerLevelMixin
java.lang.Object
net.minecraft.world.level.Level
io.github.steveplays28.stevesrealisticsleep.mixin.ServerLevelMixin
- All Implemented Interfaces:
ServerWorldExtension,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.SignalGetter
public abstract class ServerLevelMixin
extends net.minecraft.world.level.Level
implements ServerWorldExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.Level
net.minecraft.world.level.Level.ExplosionInteraction -
Field Summary
FieldsFields 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 io.github.steveplays28.stevesrealisticsleep.extension.ServerWorldExtension
consecutiveSleepTicksFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerLevelMixin(net.minecraft.world.level.storage.WritableLevelData properties, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryRef, net.minecraft.core.RegistryAccess registryManager, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimensionEntry, Supplier<net.minecraft.util.profiling.ProfilerFiller> profiler, boolean isClient, boolean debugWorld, long biomeAccess, int maxChainedNeighborUpdates) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract net.minecraft.core.BlockPosfindLightningTargetAround(net.minecraft.core.BlockPos pos) abstract net.minecraft.server.level.ServerLevelgetLevel()abstract List<net.minecraft.server.level.ServerPlayer> players()voidstevesrealisticsleep$tick(BooleanSupplier shouldKeepTicking, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) voidstevesrealisticsleep$tickTimeWithTimeTickSpeedMultiplier(@NotNull org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) protected abstract voidtickFluid(net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid) abstract voidtickPrecipitation(net.minecraft.core.BlockPos blockPos) protected abstract voidMethods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, close, createFireworks, damageSources, destroyBlock, destroyBlockProgress, dimension, dimensionType, dimensionTypeRegistration, disconnect, explode, explode, explode, explode, explode, explode, fillReportDetails, gatherChunkSourceStats, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getEntities, getEntities, getEntities, getEntities, getEntities, getEntity, getFluidState, getFreeMapId, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getMapData, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getRecipeManager, getScoreboard, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, isClientSide, isDay, isDebug, isFluidAtPosition, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playLocalSound, playLocalSound, playSeededSound, playSeededSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, playSound, potionBrewing, prepareWeather, registryAccess, removeBlock, removeBlockEntity, sendBlockUpdated, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setMapData, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, tickRateManager, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightnessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightness, getShadeMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, 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, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.minecraft.world.level.LevelAccessor
blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, gameEvent, getBlockTicks, getChunkSource, getDifficulty, getFluidTicks, hasChunk, levelEvent, levelEvent, playSound, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods 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, enabledFeatures, getBiome, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isEmptyBlock, isWaterAtMethods inherited from interface net.minecraft.world.level.LevelTimeAccess
getMoonBrightness, getMoonPhase, getTimeOfDayMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlockMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Field Details
-
raids
protected net.minecraft.world.entity.raid.Raids raids
-
-
Constructor Details
-
ServerLevelMixin
protected ServerLevelMixin(net.minecraft.world.level.storage.WritableLevelData properties, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryRef, net.minecraft.core.RegistryAccess registryManager, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimensionEntry, Supplier<net.minecraft.util.profiling.ProfilerFiller> profiler, boolean isClient, boolean debugWorld, long biomeAccess, int maxChainedNeighborUpdates)
-
-
Method Details
-
getLevel
public abstract net.minecraft.server.level.ServerLevel getLevel() -
players
- Specified by:
playersin interfacenet.minecraft.world.level.EntityGetter
-
tickPrecipitation
public abstract void tickPrecipitation(net.minecraft.core.BlockPos blockPos) -
wakeUpAllPlayers
protected abstract void wakeUpAllPlayers() -
findLightningTargetAround
protected abstract net.minecraft.core.BlockPos findLightningTargetAround(net.minecraft.core.BlockPos pos) -
tickFluid
protected abstract void tickFluid(net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.Fluid fluid) -
stevesrealisticsleep$tick
public void stevesrealisticsleep$tick(BooleanSupplier shouldKeepTicking, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) -
stevesrealisticsleep$tickTimeWithTimeTickSpeedMultiplier
public void stevesrealisticsleep$tickTimeWithTimeTickSpeedMultiplier(@NotNull @NotNull org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
-