Class ExpandBlockEntity
java.lang.Object
com.blamejared.crafttweaker.natives.block.entity.ExpandBlockEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.BlockPosgetBlockPos(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theBlockPosof the block entity.static net.minecraft.world.level.block.state.BlockStategetBlockState(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theBlockStateof the block entity.static IDatagetData(net.minecraft.world.level.block.entity.BlockEntity internal) Gets the data of the block entity.static net.minecraft.world.level.LevelgetLevel(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theLevelof the block entity.static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theResourceLocationof the block entity type.static booleanhasLevel(net.minecraft.world.level.block.entity.BlockEntity internal) Checks if the block entity has a level.static voidSets the data of the block entity.static voidupdateData(net.minecraft.world.level.block.entity.BlockEntity internal, IData data) Updates the data of the block entity, merging the provided data with the existing data.
-
Constructor Details
-
ExpandBlockEntity
public ExpandBlockEntity()
-
-
Method Details
-
getLevel
public static net.minecraft.world.level.Level getLevel(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theLevelof the block entity.- Returns:
- The
Levelof the block entity.
-
hasLevel
public static boolean hasLevel(net.minecraft.world.level.block.entity.BlockEntity internal) Checks if the block entity has a level.- Returns:
- Whether the block entity has a level.
-
getData
Gets the data of the block entity.- Returns:
- The data of the block entity.
-
setData
Sets the data of the block entity.- Parameters:
data- The data to set.
-
updateData
public static void updateData(net.minecraft.world.level.block.entity.BlockEntity internal, IData data) Updates the data of the block entity, merging the provided data with the existing data.- Parameters:
data- The data to update.
-
getBlockPos
public static net.minecraft.core.BlockPos getBlockPos(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theBlockPosof the block entity.- Returns:
- The
BlockPosof the block entity.
-
getBlockState
public static net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theBlockStateof the block entity.- Returns:
- The
BlockStateof the block entity.
-
getRegistryName
public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.level.block.entity.BlockEntity internal) Gets theResourceLocationof the block entity type.- Returns:
- The
ResourceLocationof the block entity type.
-