Class World1_21
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<net.minecraft.world.level.LevelAccessor>
mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
mods.thecomputerizer.theimpossiblelibrary.shared.v21.world.World1_21
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor,mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.world.level.LevelAccessor>
public class World1_21
extends mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
Field Summary
Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
wrappedFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor
BOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSnowAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> api) mods.thecomputerizer.theimpossiblelibrary.api.common.biome.BiomeAPI<?> getBiomeAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?, ?>> getBlockEntitiesInBox(mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box box) @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?, ?> getBlockEntityAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) intintmods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?> List<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> getEntitiesInBox(mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box box) intgetLightBlock(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) intgetLightSky(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) intgetLightTotal(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) List<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<?, ?>> getLivingInBox(mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box box) int@Nullable StringgetRaidStatus(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) intgetRaidWave(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<?> getStateAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) mods.thecomputerizer.theimpossiblelibrary.api.common.structure.StructureAPI<?> getStructureAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> api) longlongbooleanisClient()booleanbooleanbooleanbooleanisSkyVisible(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) booleanbooleanbooleanisSunset()voidsetState(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos, mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<?> state) voidspawnEntity(mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?> entity, @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> onSpawn) voidspawnItem(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemAPI<?> api, mods.thecomputerizer.theimpossiblelibrary.api.shapes.vectors.Vector3 pos, @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> beforeSpawn, @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> onSpawn) voidspawnItem(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> stack, mods.thecomputerizer.theimpossiblelibrary.api.shapes.vectors.Vector3 pos, @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> onSpawn) Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI
getMaterialAt, isDifficultyEasy, isDifficultyHard, isDifficultyHardcore, isDifficultyNormal, isDifficultyPeaceful, isServer, isSnowingAt, isUnderwater, spawnEntity, spawnItem, spawnItem, spawnItemMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
equals, getWrapped, getWrappedClass, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped
getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
-
Constructor Details
-
World1_21
-
-
Method Details
-
canSnowAt
public boolean canSnowAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> api) - Specified by:
canSnowAtin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getBiomeAt
public mods.thecomputerizer.theimpossiblelibrary.api.common.biome.BiomeAPI<?> getBiomeAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getBiomeAtin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getBlockEntitiesInBox
public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?,?>> getBlockEntitiesInBox(mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box box) - Specified by:
getBlockEntitiesInBoxin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getBlockEntityAt
@Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?,?> getBlockEntityAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getBlockEntityAtin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getDayNumber
public int getDayNumber()- Specified by:
getDayNumberin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getDifficultyOrdinal
public int getDifficultyOrdinal()- Specified by:
getDifficultyOrdinalin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getDimension
public mods.thecomputerizer.theimpossiblelibrary.api.world.DimensionAPI<?> getDimension()- Specified by:
getDimensionin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getEntitiesInBox
public List<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?>> getEntitiesInBox(mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box box) - Specified by:
getEntitiesInBoxin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getLightBlock
public int getLightBlock(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getLightBlockin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getLightSky
public int getLightSky(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getLightSkyin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getLightTotal
public int getLightTotal(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getLightTotalin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getLivingInBox
public List<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.LivingEntityAPI<?,?>> getLivingInBox(mods.thecomputerizer.theimpossiblelibrary.api.shapes.Box box) - Specified by:
getLivingInBoxin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getMoonPhase
public int getMoonPhase()- Specified by:
getMoonPhasein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getRaidStatus
@Nullable public @Nullable String getRaidStatus(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getRaidStatusin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getRaidWave
public int getRaidWave(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getRaidWavein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getStateAt
public mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<?> getStateAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
getStateAtin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getStructureAt
public mods.thecomputerizer.theimpossiblelibrary.api.common.structure.StructureAPI<?> getStructureAt(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> api) - Specified by:
getStructureAtin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getTimeDay
public long getTimeDay()- Specified by:
getTimeDayin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
getTimeTotal
public long getTimeTotal()- Specified by:
getTimeTotalin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isClient
public boolean isClient()- Specified by:
isClientin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isDaytime
public boolean isDaytime()- Specified by:
isDaytimein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isNighttime
public boolean isNighttime()- Overrides:
isNighttimein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isRaining
public boolean isRaining()- Specified by:
isRainingin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isSkyVisible
public boolean isSkyVisible(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos) - Specified by:
isSkyVisiblein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isStorming
public boolean isStorming()- Specified by:
isStormingin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isSunrise
public boolean isSunrise()- Specified by:
isSunrisein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
isSunset
public boolean isSunset()- Specified by:
isSunsetin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
setState
public void setState(mods.thecomputerizer.theimpossiblelibrary.api.world.BlockPosAPI<?> pos, mods.thecomputerizer.theimpossiblelibrary.api.common.block.BlockStateAPI<?> state) - Specified by:
setStatein classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
spawnEntity
public void spawnEntity(mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?> entity, @Nullable @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> onSpawn) - Specified by:
spawnEntityin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
spawnItem
public void spawnItem(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> stack, mods.thecomputerizer.theimpossiblelibrary.api.shapes.vectors.Vector3 pos, @Nullable @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> onSpawn) - Specified by:
spawnItemin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-
spawnItem
public void spawnItem(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemAPI<?> api, mods.thecomputerizer.theimpossiblelibrary.api.shapes.vectors.Vector3 pos, @Nullable @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> beforeSpawn, @Nullable @Nullable Consumer<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?, ?>> onSpawn) - Specified by:
spawnItemin classmods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<net.minecraft.world.level.LevelAccessor>
-