Class AbstractStorageContainerBlockItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.BlockItem
com.refinedmods.refinedstorage.common.api.storage.AbstractStorageContainerBlockItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike
- Direct Known Subclasses:
FluidStorageBlockBlockItem, ItemStorageBlockBlockItem
@API(status=STABLE,
since="2.0.0-milestone.1.4")
public abstract class AbstractStorageContainerBlockItem
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, net.minecraft.world.item.Item.TooltipContext -
Field Summary
FieldsFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, APPROXIMATELY_INFINITE_USE_DURATION, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, CODEC, CODEC_WITH_BOUND_COMPONENTS, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH, STREAM_CODECFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStorageContainerBlockItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties properties, StorageContainerItemHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, net.minecraft.world.item.component.TooltipDisplay display, Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.TooltipFlag flag) protected abstract net.minecraft.world.item.ItemStackcreatePrimaryDisassemblyByproduct(int count) protected abstract @Nullable net.minecraft.world.item.ItemStackcreateSecondaryDisassemblyByproduct(int count) protected abstract SerializableStoragecreateStorage(StorageRepository storageRepository) protected abstract StringformatAmount(long amount) protected abstract @Nullable LongvoidinventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.entity.EquipmentSlot slot) protected booleanupdateCustomBlockEntityTag(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.InteractionResultuse(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Methods inherited from class net.minecraft.world.item.BlockItem
canFitInsideContainerItems, canPlace, getBlock, getPlacementState, getPlaceSound, mustSurvive, onDestroyed, place, placeBlock, registerBlocks, setBlockEntityData, shouldPrintOpWarning, updateCustomBlockEntityTag, updatePlacementContext, useOnMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canDestroyBlock, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getCraftingRemainder, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getItemDamageSource, getName, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hurtEnemy, interactLivingEntity, isBarVisible, isCorrectToolForDrops, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOnReleaseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Field Details
-
helper
-
-
Constructor Details
-
AbstractStorageContainerBlockItem
protected AbstractStorageContainerBlockItem(net.minecraft.world.level.block.Block block, net.minecraft.world.item.Item.Properties properties, StorageContainerItemHelper helper)
-
-
Method Details
-
inventoryTick
public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.Entity entity, @Nullable net.minecraft.world.entity.EquipmentSlot slot) - Overrides:
inventoryTickin classnet.minecraft.world.item.Item
-
use
public net.minecraft.world.InteractionResult use(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
usein classnet.minecraft.world.item.Item
-
updateCustomBlockEntityTag
protected boolean updateCustomBlockEntityTag(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state) - Overrides:
updateCustomBlockEntityTagin classnet.minecraft.world.item.BlockItem
-
appendHoverText
public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, net.minecraft.world.item.component.TooltipDisplay display, Consumer<net.minecraft.network.chat.Component> builder, net.minecraft.world.item.TooltipFlag flag) - Overrides:
appendHoverTextin classnet.minecraft.world.item.Item
-
getCapacity
-
formatAmount
-
createStorage
-
createPrimaryDisassemblyByproduct
protected abstract net.minecraft.world.item.ItemStack createPrimaryDisassemblyByproduct(int count) -
createSecondaryDisassemblyByproduct
protected abstract @Nullable net.minecraft.world.item.ItemStack createSecondaryDisassemblyByproduct(int count)
-