Package ml.pluto7073.pdapi.addition
Class DrinkAddition
java.lang.Object
ml.pluto7073.pdapi.addition.DrinkAddition
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDrinkAddition(List<OnDrinkAction> actions, boolean changesColor, int color, Map<net.minecraft.resources.ResourceLocation, Integer> chemicals, int maxAmount, @Nullable String name, int currentWeight) -
Method Summary
Modifier and TypeMethodDescriptionactions()booleanstatic DrinkAdditionfromNetwork(net.minecraft.network.FriendlyByteBuf buf) intgetColor()intintvoidonDrink(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity user) voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf)
-
Field Details
-
CODEC
-
-
Constructor Details
-
DrinkAddition
protected DrinkAddition(List<OnDrinkAction> actions, boolean changesColor, int color, Map<net.minecraft.resources.ResourceLocation, Integer> chemicals, int maxAmount, @Nullable @Nullable String name, int currentWeight)
-
-
Method Details
-
onDrink
public void onDrink(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity user) -
actions
-
changesColor
public boolean changesColor() -
getColor
public int getColor() -
getChemicals
-
getMaxAmount
public int getMaxAmount() -
getCurrentWeight
public int getCurrentWeight() -
toNetwork
public void toNetwork(net.minecraft.network.FriendlyByteBuf buf) -
fromNetwork
-
getTranslationKey
-