Package appeng.api.parts
Interface IFacadePart
@NonExtendable
public interface IFacadePart
Used Internally.
not intended for implementation.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockState
void
getBoxes
(IPartCollisionHelper ch, boolean itemEntity) used to collide, and pick the partnet.minecraft.world.item.Item
getItem()
net.minecraft.world.item.ItemStack
used to save the part.net.minecraft.core.Direction
getSide()
net.minecraft.world.item.ItemStack
The item that this facade masquerades as.boolean
onClicked
(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos) boolean
onUseItemOn
(net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 pos)
-
Method Details
-
getItemStack
net.minecraft.world.item.ItemStack getItemStack()used to save the part. -
getBoxes
used to collide, and pick the part- Parameters:
ch
- collision helperitemEntity
- collision with an item entity?
-
getSide
net.minecraft.core.Direction getSide()- Returns:
- The side the facade is attached to.
-
getItem
net.minecraft.world.item.Item getItem() -
getTextureItem
net.minecraft.world.item.ItemStack getTextureItem()The item that this facade masquerades as. -
getBlockState
net.minecraft.world.level.block.state.BlockState getBlockState()- Returns:
- The block state used for rendering.
-
onUseItemOn
boolean onUseItemOn(net.minecraft.world.item.ItemStack heldItem, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 pos) -
onClicked
boolean onClicked(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos)
-