Record Class PoolRemoveAction
java.lang.Object
java.lang.Record
top.offsetmonkey538.loottablemodifier.common.api.resource.action.pool.PoolRemoveAction
- All Implemented Interfaces:
LootModifierAction
Removes the matched pools from their tables
-
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<PoolRemoveAction>Fields inherited from interface top.offsetmonkey538.loottablemodifier.common.api.resource.action.LootModifierAction
MODIFIED_ENTRY, MODIFIED_NONE, MODIFIED_POOL, MODIFIED_TABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintapply(@NotNull LootModifierContext context) Applies this action to the provided contextstatic LootModifierAction.Builderbuilder()Creates a builder forPoolRemoveActionfinal 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
-
PoolRemoveAction
public PoolRemoveAction()Creates an instance of aPoolRemoveActionrecord 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 forPoolRemoveAction- 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.
-