public class TeleportRailBlockItem
extends net.minecraft.item.BlockItem
Constructor and Description |
---|
TeleportRailBlockItem(TeleportRailBlock block,
net.minecraft.item.Item.Properties builder) |
Modifier and Type | Method and Description |
---|---|
static double |
getRandomNumberInRange(java.util.Random random,
double min,
double max)
Just a helper method.
|
boolean |
onEntityItemUpdate(net.minecraft.item.ItemStack stack,
net.minecraft.entity.item.ItemEntity itemEntity) |
net.minecraft.util.ActionResultType |
tryPlace(net.minecraft.item.BlockItemUseContext context) |
addInformation, addToBlockToItemMap, canPlace, fillItemGroup, func_219987_d, getBlock, getBlockItemUseContext, getPlaceSound, getStateForPlacement, getTranslationKey, onBlockPlaced, onItemUse, placeBlock, removeFromBlockToItemMap, setTileEntityNBT
addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, func_219972_a, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getTileEntityItemStackRenderer, getToolTypes, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public TeleportRailBlockItem(TeleportRailBlock block, net.minecraft.item.Item.Properties builder)
public net.minecraft.util.ActionResultType tryPlace(net.minecraft.item.BlockItemUseContext context)
tryPlace
in class net.minecraft.item.BlockItem
public boolean onEntityItemUpdate(net.minecraft.item.ItemStack stack, net.minecraft.entity.item.ItemEntity itemEntity)
public static double getRandomNumberInRange(java.util.Random random, double min, double max)
random
- min
- max
-