Class WorldSpawnMeteorMixin

java.lang.Object
net.minecraft.world.level.Level
me.emafire003.dev.ohmymeteors.mixin.WorldSpawnMeteorMixin
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

public abstract class WorldSpawnMeteorMixin extends net.minecraft.world.level.Level implements net.minecraft.world.level.WorldGenLevel
  • Field Summary

    Fields 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_DAY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    WorldSpawnMeteorMixin(net.minecraft.world.level.storage.WritableLevelData properties, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> registryRef, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimension, Supplier<net.minecraft.util.profiling.ProfilerFiller> profiler, boolean isClient, boolean debugWorld, long seed, int maxChainedNeighborUpdates)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    addFreshEntity(net.minecraft.world.entity.Entity entity)
     
    boolean
    checkBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> current_biome)
     
    boolean
    checkDimension(net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> current_dim)
     
    abstract @NotNull net.minecraft.world.level.chunk.ChunkSource
     
    abstract @NotNull net.minecraft.server.level.ServerLevel
     
    abstract @Nullable net.minecraft.server.level.ServerPlayer
     
    abstract @NotNull List<net.minecraft.server.level.ServerPlayer>
     
    void
    tickSpawnMeteor(BooleanSupplier shouldKeepTicking, 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, broadcastEntityEvent, close, createFireworks, destroyBlock, destroyBlockProgress, dimension, dimensionType, dimensionTypeId, dimensionTypeRegistration, disconnect, explode, explode, explode, fillReportDetails, gatherChunkSourceStats, getBestNeighborSignal, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getEntities, getEntity, getFluidState, getFreeMapId, getGameRules, getGameTime, getHeight, getLevelData, getLightEngine, getMapData, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getRecipeManager, getScoreboard, getSeaLevel, getServer, getSharedSpawnAngle, getSharedSpawnPos, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, globalLevelEvent, guardEntityTick, hasNeighborSignal, hasSignal, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, mayInteract, neighborChanged, neighborChanged, neighborShapeChanged, nextSubTickCount, noSave, onBlockStateChange, playLocalSound, playSeededSound, playSeededSound, playSound, playSound, playSound, prepareWeather, removeBlock, removeBlockEntity, sendBlockUpdated, sendPacketToServer, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setBlocksDirty, setMapData, setRainLevel, setSkyFlashTime, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, shouldTickBlocksAt, shouldTickDeath, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightness

    Methods inherited from class java.lang.Object

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

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

    canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade

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

    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.minecraft.world.level.LevelAccessor

    addParticle, blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, gameEvent, getBlockTicks, getCurrentDifficultyAt, getDifficulty, getFluidTicks, getLevelData, getRandom, getServer, hasChunk, levelEvent, levelEvent, neighborShapeChanged, 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, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, 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, 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.Holder<net.minecraft.world.level.dimension.DimensionType> dimension, Supplier<net.minecraft.util.profiling.ProfilerFiller> profiler, 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(net.minecraft.world.entity.Entity entity)
      Specified by:
      addFreshEntity in interface net.minecraft.world.level.LevelWriter
    • getChunkSource

      @NotNull public abstract @NotNull net.minecraft.world.level.chunk.ChunkSource getChunkSource()
      Specified by:
      getChunkSource in interface net.minecraft.world.level.LevelAccessor
    • getLevel

      @NotNull public abstract @NotNull net.minecraft.server.level.ServerLevel getLevel()
      Specified by:
      getLevel in interface net.minecraft.world.level.ServerLevelAccessor
    • players

      @NotNull public abstract @NotNull List<net.minecraft.server.level.ServerPlayer> players()
      Specified by:
      players in interface net.minecraft.world.level.EntityGetter
    • tickSpawnMeteor

      public void tickSpawnMeteor(BooleanSupplier shouldKeepTicking, 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)