Class ExpandBlockContainerSingleItem
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandBlockContainerSingleItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.block.entity.BlockEntitygetContainerBlockEntity(net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem internal) Gets the BlockEntity that holds the container.static booleanstillValid(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.
-
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.
-