Class AbstractProcessor
java.lang.Object
com.wdiscute.sellingbin.processors.AbstractProcessor
- Direct Known Subclasses:
DurabilityProcessor, EmptyProcessor, EnchantmentProcessor, FoodProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AbstractProcessor> static final com.mojang.serialization.Codec<List<AbstractProcessor>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intaddValue(int baseValue, int currentValue, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.world.entity.player.Player player) booleancanSell(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.world.entity.player.Player player) abstract com.mojang.serialization.MapCodec<? extends AbstractProcessor> codec()create(int baseValue) static SBDataMaps.ItemValuestatic SBDataMaps.ItemValuecreateEmpty(int baseValue) com.mojang.serialization.MapCodec<? extends AbstractProcessor> abstract List<net.minecraft.network.chat.Component> abstract net.neoforged.neoforge.registries.DeferredHolder<AbstractProcessor, AbstractProcessor> net.neoforged.neoforge.registries.DeferredHolder<AbstractProcessor, AbstractProcessor> voidonSellComplete(net.minecraft.world.item.ItemStack itemStack) voidonSellStart(net.minecraft.world.item.ItemStack itemStack) booleanshouldCancelShrink(net.minecraft.world.item.ItemStack itemStack) abstract boolean
-
Field Details
-
ABSTRACT_PROCESSOR_CODEC
-
ABSTRACT_PROCESSOR_CODEC_LIST
public static final com.mojang.serialization.Codec<List<AbstractProcessor>> ABSTRACT_PROCESSOR_CODEC_LIST
-
-
Constructor Details
-
AbstractProcessor
public AbstractProcessor()
-
-
Method Details
-
codec
-
getRegistryHolder
public abstract net.neoforged.neoforge.registries.DeferredHolder<AbstractProcessor, AbstractProcessor> getRegistryHolder() -
showDescriptionOnEmi
public abstract boolean showDescriptionOnEmi() -
getDescription
-
getRegistryHolderOrThrow
public net.neoforged.neoforge.registries.DeferredHolder<AbstractProcessor, AbstractProcessor> getRegistryHolderOrThrow() -
getCodecOrThrow
-
addValue
public abstract int addValue(int baseValue, int currentValue, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.world.entity.player.Player player) -
shouldCancelShrink
public boolean shouldCancelShrink(net.minecraft.world.item.ItemStack itemStack) -
onSellStart
public void onSellStart(net.minecraft.world.item.ItemStack itemStack) -
onSellComplete
public void onSellComplete(net.minecraft.world.item.ItemStack itemStack) -
createEmpty
-
createEmpty
-
create
-
canSell
public boolean canSell(net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.world.entity.player.Player player)
-