Interface IFacadePart


@NonExtendable public interface IFacadePart
Used Internally. not intended for implementation.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.state.BlockState
     
    void
    getBoxes(IPartCollisionHelper ch, boolean itemEntity)
    used to collide, and pick the part
    net.minecraft.world.item.Item
     
    net.minecraft.world.item.ItemStack
    used to save the part.
    net.minecraft.core.Direction
     
    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 Link icon

    • getItemStack Link icon

      net.minecraft.world.item.ItemStack getItemStack()
      used to save the part.
    • getBoxes Link icon

      void getBoxes(IPartCollisionHelper ch, boolean itemEntity)
      used to collide, and pick the part
      Parameters:
      ch - collision helper
      itemEntity - collision with an item entity?
    • getSide Link icon

      net.minecraft.core.Direction getSide()
      Returns:
      The side the facade is attached to.
    • getItem Link icon

      net.minecraft.world.item.Item getItem()
    • getTextureItem Link icon

      net.minecraft.world.item.ItemStack getTextureItem()
      The item that this facade masquerades as.
    • getBlockState Link icon

      net.minecraft.world.level.block.state.BlockState getBlockState()
      Returns:
      The block state used for rendering.
    • onUseItemOn Link icon

      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 Link icon

      boolean onClicked(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.Vec3 pos)