Class WorldSpawnMeteorMixin
java.lang.Object
net.minecraft.world.level.Level
me.emafire003.dev.ohmymeteors.mixin.WorldSpawnMeteorMixin
- All Implemented Interfaces:
AutoCloseable, net.fabricmc.fabric.api.attachment.v1.AttachmentTarget, net.fabricmc.fabric.api.attachment.v1.GlobalAttachmentsProvider, net.fabricmc.fabric.api.blockgetter.v2.FabricBlockGetter, net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockAndLightGetter, 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.LevelWriter, net.minecraft.world.level.ScheduledTickAccess, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.level.SignalGetter, net.minecraft.world.level.WorldGenLevel
public abstract class WorldSpawnMeteorMixin
extends net.minecraft.world.level.Level
implements net.minecraft.world.level.WorldGenLevel
-
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 net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
net.fabricmc.fabric.api.attachment.v1.AttachmentTarget.OnAttachedSet<A>Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
net.minecraft.world.level.BlockGetter.BlockStepVisitor -
Field Summary
Fields inherited from class net.minecraft.world.level.Level
addend, blockEntityTickers, END, 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, thunderLevelFields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
NBT_ATTACHMENT_KEYFields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorldSpawnMeteorMixin(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, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates) -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanaddFreshEntity(@NonNull net.minecraft.world.entity.Entity entity) booleancheckBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> current_biome) booleancheckDimension(net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> current_dim) abstract @NotNull net.minecraft.world.level.chunk.ChunkSourceabstract @NotNull net.minecraft.server.level.ServerLevelgetLevel()abstract @Nullable net.minecraft.server.level.ServerPlayerabstract @NotNull List<net.minecraft.server.level.ServerPlayer> players()voidtickSpawnMeteor(BooleanSupplier haveTime, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Methods inherited from class net.minecraft.world.level.Level
addAlwaysVisibleParticle, addAlwaysVisibleParticle, addBlockEntityTicker, addDestroyBlockEffect, addParticle, addParticle, blockEntityChanged, blockEvent, broadcastDamageEvent, broadcastEntityEvent, canHaveWeather, clockManager, close, createFireworks, damageSources, destroyBlock, destroyBlockProgress, dimension, dimensionType, dimensionTypeRegistration, dragonParts, environmentAttributes, explode, explode, explode, explode, explode, fillReportDetails, fuelValues, gatherChunkSourceStats, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getClientLeafTintColor, getDefaultClockTime, getEntities, getEntities, getEntities, getEntities, getEntities, getEntity, getEntity, getEntityInAnyDimension, getFluidState, getHeight, getLevelData, getLightEngine, getMapData, getOverworldClockTime, getPlayerInAnyDimension, getPushableEntities, getRainLevel, getRandom, getRespawnData, getScoreboard, getServer, getSkyDarken, getThunderLevel, getWorldBorderAdjustedRespawnData, globalLevelEvent, guardEntityTick, hasEntities, isBrightOutside, isClientSide, isDarkOutside, isDebug, isFluidAtPosition, isInSpawnableBounds, isInValidBounds, isInWorldBounds, isLoaded, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockEntityAdded, palettedContainerFactory, playLocalSound, playLocalSound, playLocalSound, playPlayerSound, playSeededSound, playSeededSound, playSeededSound, playSound, playSound, playSound, playSound, playSound, potionBrewing, precipitationAt, recipeAccess, registryAccess, removeBlock, removeBlockEntity, sendBlockUpdated, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setRainLevel, setRespawnData, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, tickRateManager, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updatePOIOnBlockStateChange, updateSkyBrightnessMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget
getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, onAttachedSet, removeAttached, setAttachedMethods inherited from interface net.minecraft.world.level.BlockAndLightGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods 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, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayerMethods inherited from interface net.fabricmc.fabric.api.blockgetter.v2.FabricBlockGetter
getBiomeFabric, getBlockEntityRenderData, hasBiomesMethods inherited from interface net.fabricmc.fabric.api.attachment.v1.GlobalAttachmentsProvider
globalAttachmentsMethods inherited from interface net.minecraft.world.level.LevelAccessor
addParticle, createTick, createTick, gameEvent, gameEvent, gameEvent, gameEvent, gameEvent, getDifficulty, getGameTime, getLevelData, getRandom, getServer, hasChunk, levelEvent, levelEvent, neighborShapeChanged, nextSubTickCount, playSound, playSound, updateNeighborsAtMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, enabledFeatures, environmentAttributes, getBiome, getBiomeManager, getBlockStatesIfLoaded, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getEffectiveSkyBrightness, getHeight, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccessMethods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface net.minecraft.world.level.LevelWriter
destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlockMethods inherited from interface net.minecraft.world.level.ScheduledTickAccess
getBlockTicks, getFluidTicks, scheduleTick, scheduleTick, scheduleTick, scheduleTickMethods inherited from interface net.minecraft.world.level.ServerLevelAccessor
addFreshEntityWithPassengers, getCurrentDifficultyAtMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignalMethods inherited from interface net.minecraft.world.level.WorldGenLevel
ensureCanWrite, getSeed, setCurrentlyGenerating
-
Constructor Details
-
WorldSpawnMeteorMixin
protected WorldSpawnMeteorMixin(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, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates)
-
-
Method Details
-
getRandomPlayer
@Nullable public abstract @Nullable net.minecraft.server.level.ServerPlayer getRandomPlayer() -
addFreshEntity
public abstract boolean addFreshEntity(@NonNull net.minecraft.world.entity.Entity entity) - Specified by:
addFreshEntityin interfacenet.minecraft.world.level.LevelWriter
-
getChunkSource
@NotNull public abstract @NotNull net.minecraft.world.level.chunk.ChunkSource getChunkSource()- Specified by:
getChunkSourcein interfacenet.minecraft.world.level.LevelAccessor
-
getLevel
@NotNull public abstract @NotNull net.minecraft.server.level.ServerLevel getLevel()- Specified by:
getLevelin interfacenet.minecraft.world.level.ServerLevelAccessor
-
players
- Specified by:
playersin interfacenet.minecraft.world.level.EntityGetter
-
tickSpawnMeteor
public void tickSpawnMeteor(BooleanSupplier haveTime, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) -
checkDimension
public boolean checkDimension(net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> current_dim) -
checkBiome
public boolean checkBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> current_biome)
-