Package dev.latvian.mods.kubejs.recipe
Record Class CompostableRecipesKubeEvent
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.CompostableRecipesKubeEvent
- All Implemented Interfaces:
KubeEvent
public record CompostableRecipesKubeEvent(VirtualDataMapFile<net.minecraft.world.item.Item,net.neoforged.neoforge.registries.datamaps.builtin.Compostable> compostables)
extends Record
implements KubeEvent
-
Constructor Summary
ConstructorsConstructorDescriptionCompostableRecipesKubeEvent(VirtualDataMapFile<net.minecraft.world.item.Item, net.neoforged.neoforge.registries.datamaps.builtin.Compostable> compostables) Creates an instance of aCompostableRecipesKubeEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ItemPredicate match, float f) voidadd(ItemPredicate match, float f, boolean villager) voidaddReplace(ItemPredicate match, float f) voidaddReplace(ItemPredicate match, float f, boolean villager) VirtualDataMapFile<net.minecraft.world.item.Item, net.neoforged.neoforge.registries.datamaps.builtin.Compostable> Returns the value of thecompostablesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidremove(ItemPredicate match) voidvoidfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, success
-
Constructor Details
-
CompostableRecipesKubeEvent
public CompostableRecipesKubeEvent(VirtualDataMapFile<net.minecraft.world.item.Item, net.neoforged.neoforge.registries.datamaps.builtin.Compostable> compostables) Creates an instance of aCompostableRecipesKubeEventrecord class.- Parameters:
compostables- the value for thecompostablesrecord component
-
-
Method Details
-
add
-
add
-
addReplace
-
addReplace
-
replaceAll
public void replaceAll() -
remove
-
removeAll
public void removeAll() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
compostables
public VirtualDataMapFile<net.minecraft.world.item.Item,net.neoforged.neoforge.registries.datamaps.builtin.Compostable> compostables()Returns the value of thecompostablesrecord component.- Returns:
- the value of the
compostablesrecord component
-