public class DebugStickItem extends Item
Item.Properties
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
Constructor and Description |
---|
DebugStickItem(Item.Properties builder) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlayerBreakBlockWhileHolding(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player) |
private static <T extends java.lang.Comparable<T>> |
cycleProperty(BlockState state,
IProperty<T> propertyIn,
boolean backwards) |
private static <T extends java.lang.Comparable<T>> |
func_195957_a(BlockState state,
IProperty<T> propertyIn) |
private static <T> T |
getAdjacentValue(java.lang.Iterable<T> allowedValues,
T currentValue,
boolean backwards) |
private void |
handleClick(PlayerEntity player,
BlockState state,
IWorld worldIn,
BlockPos pos,
boolean rightClick,
ItemStack stack) |
boolean |
hasEffect(ItemStack stack) |
ActionResultType |
onItemUse(ItemUseContext context) |
private static void |
sendMessage(PlayerEntity player,
ITextComponent text) |
addInformation, addPropertyOverride, asItem, canHarvestBlock, fillItemGroup, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, 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, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public DebugStickItem(Item.Properties builder)
public boolean canPlayerBreakBlockWhileHolding(BlockState state, World worldIn, BlockPos pos, PlayerEntity player)
canPlayerBreakBlockWhileHolding
in class Item
public ActionResultType onItemUse(ItemUseContext context)
private void handleClick(PlayerEntity player, BlockState state, IWorld worldIn, BlockPos pos, boolean rightClick, ItemStack stack)
private static <T extends java.lang.Comparable<T>> BlockState cycleProperty(BlockState state, IProperty<T> propertyIn, boolean backwards)
private static <T> T getAdjacentValue(java.lang.Iterable<T> allowedValues, @Nullable T currentValue, boolean backwards)
private static void sendMessage(PlayerEntity player, ITextComponent text)
private static <T extends java.lang.Comparable<T>> java.lang.String func_195957_a(BlockState state, IProperty<T> propertyIn)