Record Class EntryRemoveAction
java.lang.Object
java.lang.Record
top.offsetmonkey538.loottablemodifier.common.api.resource.action.entry.EntryRemoveAction
- All Implemented Interfaces:
LootModifierAction
Removes the matched entries from their pools
-
Nested Class Summary
Nested classes/interfaces inherited from interface top.offsetmonkey538.loottablemodifier.common.api.resource.action.LootModifierAction
LootModifierAction.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EntryRemoveAction>Fields inherited from interface top.offsetmonkey538.loottablemodifier.common.api.resource.action.LootModifierAction
MODIFIED_ENTRY, MODIFIED_NONE, MODIFIED_POOL, MODIFIED_TABLE -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aEntryRemoveActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintapply(@NotNull LootModifierContext context) Applies this action to the provided contextstatic LootModifierAction.Builderbuilder()Creates a builder forEntryRemoveActionfinal booleanIndicates whether some other object is "equal to" this one.getType()Returns the type of this action.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
EntryRemoveAction
public EntryRemoveAction()Creates an instance of aEntryRemoveActionrecord class.
-
-
Method Details
-
getType
Description copied from interface:LootModifierActionReturns the type of this action.- Specified by:
getTypein interfaceLootModifierAction- Returns:
- the
typeof this action.
-
apply
Description copied from interface:LootModifierActionApplies this action to the provided context- Specified by:
applyin interfaceLootModifierAction- Parameters:
context- the context to apply to- Returns:
- the applied modification level
- See Also:
-
builder
Creates a builder forEntryRemoveAction- Returns:
- a new
LootModifierAction.Builder
-
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.
-