Package net.minecraft
Class class_5634
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BlockItem
net.minecraft.class_5634
- All Implemented Interfaces:
class_5633,ItemConvertible
public class class_5634 extends BlockItem implements class_5633
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
Fields Modifier and Type Field Description private SoundEventfield_27877Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group -
Constructor Summary
Constructors Constructor Description class_5634(Block block, SoundEvent soundEvent, Item.Settings settings) -
Method Summary
Modifier and Type Method Description protected SoundEventgetPlaceSound(BlockState blockState)StringgetTranslationKey()Gets the translation key of this item.booleanplaceFluid(PlayerEntity playerEntity, World world, BlockPos blockPos, BlockHitResult blockHitResult)ActionResultuseOnBlock(ItemUsageContext itemUsageContext)Called when an item is used on a block.Methods inherited from class net.minecraft.item.BlockItem
appendBlocks, appendStacks, appendTooltip, canPlace, checkStatePlacement, getBlock, getPlacementContext, getPlacementState, hasStoredInventory, place, place, postPlacement, writeTagToBlockEntityMethods inherited from class net.minecraft.item.Item
asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isNetworkSynced, isUsedOnRelease, method_31570, method_32346, onClicked, onCraft, onStackClicked, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.class_5633
onEmptied
-
Field Details
-
field_27877
-
-
Constructor Details
-
class_5634
-
-
Method Details
-
useOnBlock
Description copied from class:BlockItemCalled when an item is used on a block.This method is called on both the logical client and logical server, so take caution when using this method. The logical side can be checked using
context.getWorld().isClient().- Overrides:
useOnBlockin classBlockItem- Parameters:
itemUsageContext- the usage context- Returns:
- an action result that specifies if using the item on a block was successful.
-
getTranslationKey
Description copied from class:BlockItemGets the translation key of this item.- Overrides:
getTranslationKeyin classBlockItem
-
getPlaceSound
- Overrides:
getPlaceSoundin classBlockItem
-
placeFluid
public boolean placeFluid(@Nullable PlayerEntity playerEntity, World world, BlockPos blockPos, @Nullable BlockHitResult blockHitResult)- Specified by:
placeFluidin interfaceclass_5633
-