Package dev.latvian.mods.kubejs.level
Class CachedLevelBlock
java.lang.Object
dev.latvian.mods.kubejs.level.CachedLevelBlock
- All Implemented Interfaces:
BlockProviderKJS,RegistryObjectKJS<net.minecraft.world.level.block.Block>,LevelBlock,dev.latvian.mods.rhino.util.SpecialEquality
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.level.block.entity.BlockEntitynet.minecraft.world.level.block.state.BlockStatefinal net.minecraft.world.level.Level -
Constructor Summary
ConstructorsConstructorDescriptionCachedLevelBlock(net.minecraft.world.level.Level w, net.minecraft.core.BlockPos p) -
Method Summary
Modifier and TypeMethodDescriptioncache(net.minecraft.world.level.block.entity.BlockEntity entity) cache(net.minecraft.world.level.block.state.BlockState state) voidbooleannet.minecraft.world.level.block.state.BlockState@Nullable net.minecraft.world.level.block.entity.BlockEntitynet.minecraft.world.level.LevelgetLevel()net.minecraft.core.BlockPosgetPos()voidsetBlockState(net.minecraft.world.level.block.state.BlockState state, int flags) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.core.BlockProviderKJS
kjs$asHolder, kjs$getId, kjs$getKey, kjs$getRegistry, kjs$getRegistryId, kjs$getTypeDataMethods inherited from interface dev.latvian.mods.kubejs.level.LevelBlock
canSeeSkyFromBelowWater, createEntity, explode, getBiomeId, getBlockLight, getCanSeeSky, getCenterX, getCenterY, getCenterZ, getDimension, getDimensionKey, getDown, getDrops, getDrops, getEast, getEntityData, getEntityId, getInventory, getInventory, getItem, getLight, getNorth, getPlayersInRadius, getPlayersInRadius, getProperties, getSkyLight, getSouth, getUp, getWest, getX, getY, getZ, kjs$getBlock, mergeEntityData, offset, offset, offset, popItem, popItemFromFace, set, set, set, setBlockState, setEntityData, spawnFireworks, spawnLightning, spawnLightning, spawnLightning, toBlockStateStringMethods inherited from interface dev.latvian.mods.kubejs.core.RegistryObjectKJS
kjs$getIdLocation, kjs$getMod, kjs$getTagKeys, kjs$getTags, kjs$hasTag, specialEquals
-
Field Details
-
minecraftLevel
public final net.minecraft.world.level.Level minecraftLevel -
cachedState
public transient net.minecraft.world.level.block.state.BlockState cachedState -
cachedEntity
public transient net.minecraft.world.level.block.entity.BlockEntity cachedEntity
-
-
Constructor Details
-
CachedLevelBlock
public CachedLevelBlock(net.minecraft.world.level.Level w, net.minecraft.core.BlockPos p)
-
-
Method Details
-
getLevel
public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin interfaceLevelBlock
-
getPos
public net.minecraft.core.BlockPos getPos()- Specified by:
getPosin interfaceLevelBlock
-
cache
- Specified by:
cachein interfaceLevelBlock
-
cache
- Specified by:
cachein interfaceLevelBlock
-
clearCache
public void clearCache() -
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState()- Specified by:
getBlockStatein interfaceLevelBlock
-
setBlockState
public void setBlockState(net.minecraft.world.level.block.state.BlockState state, int flags) - Specified by:
setBlockStatein interfaceLevelBlock
-
getEntity
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getEntity()- Specified by:
getEntityin interfaceLevelBlock
-
toString
-
equals
-