Package net.minecraft.item
Class DebugStickItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.DebugStickItem
- All Implemented Interfaces:
ItemConvertible
public class DebugStickItem extends Item
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description DebugStickItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description booleancanMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)private static <T> Tcycle(Iterable<T> elements, T current, boolean inverse)private static <T extends Comparable<T>>
BlockStatecycle(BlockState state, Property<T> property, boolean inverse)private static <T extends Comparable<T>>
StringgetValueString(BlockState state, Property<T> property)booleanhasEnchantmentGlint(ItemStack stack)private static voidsendMessage(PlayerEntity player, Text message)private voiduse(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)ActionResultuseOnBlock(ItemUsageContext context)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntity
-
Constructor Details
-
Method Details
-
hasEnchantmentGlint
- Overrides:
hasEnchantmentGlintin classItem
-
canMine
-
useOnBlock
- Overrides:
useOnBlockin classItem
-
use
private void use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack) -
cycle
private static <T extends Comparable<T>> BlockState cycle(BlockState state, Property<T> property, boolean inverse) -
cycle
-
sendMessage
-
getValueString
private static <T extends Comparable<T>> String getValueString(BlockState state, Property<T> property)
-