Package net.minecraft.item
Class MinecartItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.MinecartItem
public class MinecartItem extends Item
- Mappings:
Namespace Name official aadintermediary net/minecraft/class_6named net/minecraft/item/MinecartItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields Modifier and Type Field Description private static DispenserBehaviorMINECART_BEHAVIORprivate AbstractMinecartEntity.TypeminecartTypeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Constructor Description MinecartItem(AbstractMinecartEntity.Type type) -
Method Summary
Methods inherited from class net.minecraft.item.Item
appendItemStacks, appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, 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, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient
-
Field Details
-
MINECART_BEHAVIOR
- Mappings:
Namespace Name Mixin selector official aLaad;a:Lcr;intermediary field_32Lnet/minecraft/class_6;field_32:Lnet/minecraft/class_1387;named MINECART_BEHAVIORLnet/minecraft/item/MinecartItem;MINECART_BEHAVIOR:Lnet/minecraft/block/dispenser/DispenserBehavior;
-
minecartType
- Mappings:
Namespace Name Mixin selector official bLaad;b:Lva$a;intermediary field_33Lnet/minecraft/class_6;field_33:Lnet/minecraft/class_1895$class_1896;named minecartTypeLnet/minecraft/item/MinecartItem;minecartType:Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
-
-
Constructor Details
-
MinecartItem
- Mappings:
Namespace Name Mixin selector official <init>Laad;<init>(Lva$a;)Vintermediary <init>Lnet/minecraft/class_6;<init>(Lnet/minecraft/class_1895$class_1896;)Vnamed <init>Lnet/minecraft/item/MinecartItem;<init>(Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;)V
-
-
Method Details
-
use
public boolean use(ItemStack itemStack, PlayerEntity player, World world, BlockPos pos, Direction direction, float facingX, float facingY, float facingZ)- Overrides:
usein classItem- 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
-