Record Class ItemStackRequestAction.CreateAction
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.inventory.ItemStackRequestAction.CreateAction
- All Implemented Interfaces:
ItemStackRequestAction
- Enclosing interface:
ItemStackRequestAction
public static record ItemStackRequestAction.CreateAction(int resultSlot)
extends Record
implements ItemStackRequestAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface ItemStackRequestAction
ItemStackRequestAction.BeaconPaymentAction, ItemStackRequestAction.ConsumeAction, ItemStackRequestAction.CraftCreativeAction, ItemStackRequestAction.CraftLoomAction, ItemStackRequestAction.CraftRecipeAction, ItemStackRequestAction.CraftRecipeAutoAction, ItemStackRequestAction.CraftRecipeOptionalAction, ItemStackRequestAction.CraftResultsDeprecatedAction, ItemStackRequestAction.CreateAction, ItemStackRequestAction.DestroyAction, ItemStackRequestAction.DropAction, ItemStackRequestAction.MineBlockAction, ItemStackRequestAction.PlaceAction, ItemStackRequestAction.SwapAction, ItemStackRequestAction.TakeAction -
Constructor Summary
ConstructorsConstructorDescriptionCreateAction(int resultSlot) Creates an instance of aCreateActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.intReturns the value of theresultSlotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateAction
public CreateAction(int resultSlot) Creates an instance of aCreateActionrecord class.- Parameters:
resultSlot- the value for theresultSlotrecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceItemStackRequestAction
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
resultSlot
public int resultSlot()Returns the value of theresultSlotrecord component.- Returns:
- the value of the
resultSlotrecord component
-