Package net.minecraft.item
Class StoneSlabItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
net.minecraft.item.StoneSlabItem
public class StoneSlabItem extends BlockItem
- Mappings:
Namespace Name official aauintermediary net/minecraft/class_23named net/minecraft/item/StoneSlabItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description private SlabBlockdoubleSlabprivate SlabBlocksingleSlabFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description StoneSlabItem(Block slabBlock, SlabBlock singleSlab, SlabBlock doubleSlab) -
Method Summary
Modifier and Type Method Description intgetMeta(int i)StringgetTranslationKey(ItemStack stack)private booleanmethod_22(ItemStack itemStack, World world, BlockPos blockPos, Object object)booleanmethod_8182(World world, BlockPos blockPos, Direction direction, PlayerEntity playerEntity, ItemStack itemStack)booleanuse(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)Methods inherited from class net.minecraft.item.BlockItem
appendItemStacks, getBlock, getItemGroup, getTranslationKey, setBlockEntityTag, setTranslationKeyMethods inherited from class net.minecraft.item.Item
appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient
-
Field Details
-
singleSlab
- Mappings:
Namespace Name Mixin selector official bLaau;b:Lahh;intermediary field_56Lnet/minecraft/class_23;field_56:Lnet/minecraft/class_226;named singleSlabLnet/minecraft/item/StoneSlabItem;singleSlab:Lnet/minecraft/block/SlabBlock;
-
doubleSlab
- Mappings:
Namespace Name Mixin selector official cLaau;c:Lahh;intermediary field_57Lnet/minecraft/class_23;field_57:Lnet/minecraft/class_226;named doubleSlabLnet/minecraft/item/StoneSlabItem;doubleSlab:Lnet/minecraft/block/SlabBlock;
-
-
Constructor Details
-
StoneSlabItem
- Mappings:
Namespace Name Mixin selector official <init>Laau;<init>(Lafh;Lahh;Lahh;)Vintermediary <init>Lnet/minecraft/class_23;<init>(Lnet/minecraft/class_160;Lnet/minecraft/class_226;Lnet/minecraft/class_226;)Vnamed <init>Lnet/minecraft/item/StoneSlabItem;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/SlabBlock;Lnet/minecraft/block/SlabBlock;)V
-
-
Method Details
-
getMeta
public int getMeta(int i) -
getTranslationKey
- Overrides:
getTranslationKeyin classBlockItem- Mappings:
Namespace Name Mixin selector official e_Lzw;e_(Lzx;)Ljava/lang/String;intermediary method_8286Lnet/minecraft/class_2054;method_8286(Lnet/minecraft/class_2056;)Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)- Overrides:
usein classBlockItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Lwn;Ladm;Lcj;Lcq;FFF)Zintermediary method_8264Lnet/minecraft/class_2054;method_8264(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFF)Znamed useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFF)Z
-
method_8182
@Environment(CLIENT) public boolean method_8182(World world, BlockPos blockPos, Direction direction, PlayerEntity playerEntity, ItemStack itemStack)- Overrides:
method_8182in classBlockItem- Mappings:
Namespace Name Mixin selector official aLyo;a(Ladm;Lcj;Lcq;Lwn;Lzx;)Zintermediary method_8182Lnet/minecraft/class_2018;method_8182(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;Lnet/minecraft/class_1963;Lnet/minecraft/class_2056;)Znamed method_8182Lnet/minecraft/item/BlockItem;method_8182(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Z
-
method_22
- Mappings:
Namespace Name Mixin selector official aLaau;a(Lzx;Ladm;Lcj;Ljava/lang/Object;)Zintermediary method_22Lnet/minecraft/class_23;method_22(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Ljava/lang/Object;)Znamed method_22Lnet/minecraft/item/StoneSlabItem;method_22(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
-