Class CrateItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
net.sashiro.compressedblocks.item.CrateItem
- All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem,net.minecraft.world.level.ItemLike
public class CrateItem
extends net.minecraft.world.item.BlockItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties -
Field Summary
Fields inherited from class net.minecraft.world.item.BlockItem
BLOCK_STATE_TAGFields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, category, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCrateItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(net.minecraft.world.item.ItemStack s, net.minecraft.world.level.Level l, List<net.minecraft.network.chat.Component> c, net.minecraft.world.item.TooltipFlag t) Methods inherited from class net.minecraft.world.item.BlockItem
canFitInsideContainerItems, canPlace, fillItemCategory, getBlock, getBlockEntityData, getDescriptionId, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, setBlockEntityData, updateCustomBlockEntityTag, updateCustomBlockEntityTag, updatePlacementContext, useOnMethods inherited from class net.minecraft.world.item.Item
allowdedIn, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getEquipSound, getFoodProperties, getId, getItemCategory, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem
allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor
-
Constructor Details
-
CrateItem
public CrateItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties properties)
-
-
Method Details
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack s, net.minecraft.world.level.Level l, List<net.minecraft.network.chat.Component> c, net.minecraft.world.item.TooltipFlag t) - Overrides:
appendHoverTextin classnet.minecraft.world.item.BlockItem
-