public class DebugStickItem extends Item
Item.SettingsATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
DebugStickItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMine(BlockState state,
World world,
BlockPos pos,
PlayerEntity miner) |
private static <T extends Comparable<T>> |
cycle(BlockState state,
Property<T> property,
boolean inverse) |
private static <T> T |
cycle(Iterable<T> elements,
T current,
boolean inverse) |
private static <T extends Comparable<T>> |
getValueString(BlockState state,
Property<T> property) |
boolean |
hasEnchantmentGlint(ItemStack stack) |
private static void |
sendMessage(PlayerEntity player,
Text message) |
private void |
use(PlayerEntity player,
BlockState state,
IWorld world,
BlockPos pos,
boolean update,
ItemStack stack) |
ActionResult |
useOnBlock(ItemUsageContext context) |
addPropertyGetter, appendStacks, appendTooltip, asItem, byRawId, canRepair, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getModifiers, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasPropertyGetters, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntitypublic DebugStickItem(Item.Settings settings)
public boolean hasEnchantmentGlint(ItemStack stack)
hasEnchantmentGlint in class Itempublic boolean canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
public ActionResult useOnBlock(ItemUsageContext context)
useOnBlock in class Itemprivate void use(PlayerEntity player, BlockState state, IWorld world, BlockPos pos, boolean update, ItemStack stack)
private static <T extends Comparable<T>> BlockState cycle(BlockState state, Property<T> property, boolean inverse)
private static void sendMessage(PlayerEntity player, Text message)
private static <T extends Comparable<T>> String getValueString(BlockState state, Property<T> property)