Class ExpandBlockEntity

java.lang.Object
com.blamejared.crafttweaker.natives.block.entity.ExpandBlockEntity

@ZenRegister public class ExpandBlockEntity extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.core.BlockPos
    getBlockPos(net.minecraft.world.level.block.entity.BlockEntity internal)
    Gets the BlockPos of the block entity.
    static net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.world.level.block.entity.BlockEntity internal)
    Gets the BlockState of the block entity.
    static IData
    getData(net.minecraft.world.level.block.entity.BlockEntity internal)
    Gets the data of the block entity.
    static net.minecraft.world.level.Level
    getLevel(net.minecraft.world.level.block.entity.BlockEntity internal)
    Gets the Level of the block entity.
    static net.minecraft.resources.ResourceLocation
    getRegistryName(net.minecraft.world.level.block.entity.BlockEntity internal)
    Gets the ResourceLocation of the block entity type.
    static boolean
    hasLevel(net.minecraft.world.level.block.entity.BlockEntity internal)
    Checks if the block entity has a level.
    static void
    setData(net.minecraft.world.level.block.entity.BlockEntity internal, IData data)
    Sets the data of the block entity.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 the Level of the block entity.
      Returns:
      The Level of 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

      public static IData getData(net.minecraft.world.level.block.entity.BlockEntity internal)
      Gets the data of the block entity.
      Returns:
      The data of the block entity.
    • setData

      public static void setData(net.minecraft.world.level.block.entity.BlockEntity internal, IData data)
      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 the BlockPos of the block entity.
      Returns:
      The BlockPos of the block entity.
    • getBlockState

      public static net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.world.level.block.entity.BlockEntity internal)
      Gets the BlockState of the block entity.
      Returns:
      The BlockState of the block entity.
    • getRegistryName

      public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.level.block.entity.BlockEntity internal)
      Gets the ResourceLocation of the block entity type.
      Returns:
      The ResourceLocation of the block entity type.