Interface IFacadeItem


@NonExtendable public interface IFacadeItem
Implemented on AE2 facade items.
  • Method Summary

    Modifier and Type
    Method
    Description
    createPartFromItemStack(net.minecraft.world.item.ItemStack is, net.minecraft.core.Direction side)
    creates an IFacadePart from the facade ItemStack and the Direction
    net.minecraft.world.level.block.state.BlockState
    getTextureBlockState(net.minecraft.world.item.ItemStack is)
    get the BlockState texture the ItemStack stores
    net.minecraft.world.item.ItemStack
    getTextureItem(net.minecraft.world.item.ItemStack is)
    get the ItemStack texture the facade was created with
  • Method Details

    • createPartFromItemStack

      IFacadePart createPartFromItemStack(net.minecraft.world.item.ItemStack is, net.minecraft.core.Direction side)
      creates an IFacadePart from the facade ItemStack and the Direction
      Parameters:
      is - the facade ItemStack you want the IFacadePart for
      side - the Direction the IFacadePart is for
      Returns:
      the created IFacadePart
    • getTextureItem

      net.minecraft.world.item.ItemStack getTextureItem(net.minecraft.world.item.ItemStack is)
      get the ItemStack texture the facade was created with
      Parameters:
      is - the facade ItemStack you want the texture from
      Returns:
      the ItemStack texture
    • getTextureBlockState

      net.minecraft.world.level.block.state.BlockState getTextureBlockState(net.minecraft.world.item.ItemStack is)
      get the BlockState texture the ItemStack stores
      Parameters:
      is - the facade ItemStack you want the texture from
      Returns:
      the texture as BlockState