Class ExpandBlockContainerSingleItem

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandBlockContainerSingleItem

@ZenRegister public class ExpandBlockContainerSingleItem extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.block.entity.BlockEntity
    getContainerBlockEntity(net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem internal)
    Gets the BlockEntity that holds the container.
    static boolean
    stillValid(net.minecraft.world.ticks.ContainerSingleItem internal, net.minecraft.world.entity.player.Player player)
    Checks if the player container is still valid for a player to interact with.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandBlockContainerSingleItem

      public ExpandBlockContainerSingleItem()
  • Method Details

    • getContainerBlockEntity

      public static net.minecraft.world.level.block.entity.BlockEntity getContainerBlockEntity(net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem internal)
      Gets the BlockEntity that holds the container.
      Returns:
      The BlockEntity that holds the container.
    • stillValid

      public static boolean stillValid(net.minecraft.world.ticks.ContainerSingleItem internal, net.minecraft.world.entity.player.Player player)
      Checks if the player container is still valid for a player to interact with.
      Parameters:
      player - The player interacting with the container.
      Returns:
      Whether the player can still access the container.