Package appeng.api.implementations.items
Interface IFacadeItem
@NonExtendable
public interface IFacadeItem
Implemented on AE2
facade items
.-
Method Summary
Modifier and TypeMethodDescriptioncreatePartFromItemStack
(net.minecraft.world.item.ItemStack is, net.minecraft.core.Direction side) creates an IFacadePart from the facade ItemStack and the Directionnet.minecraft.world.level.block.state.BlockState
getTextureBlockState
(net.minecraft.world.item.ItemStack is) get the BlockState texture the ItemStack storesnet.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 forside
- 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
-