Record Class IPocketCraftingContext.Client.Impl
java.lang.Object
java.lang.Record
petrolpark.mc.library.core.world.item.crafting.pocket.IPocketCraftingContext.Client.Impl
- All Implemented Interfaces:
IPocketCraftingContext,IPocketCraftingContext.Client
- Enclosing interface:
IPocketCraftingContext.Client
public static record IPocketCraftingContext.Client.Impl(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.player.LocalPlayer player, net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.item.ItemStack toolStack)
extends Record
implements IPocketCraftingContext.Client
-
Nested Class Summary
Nested classes/interfaces inherited from interface petrolpark.mc.library.core.world.item.crafting.pocket.IPocketCraftingContext
IPocketCraftingContext.ClientNested classes/interfaces inherited from interface petrolpark.mc.library.core.world.item.crafting.pocket.IPocketCraftingContext.Client
IPocketCraftingContext.Client.Impl -
Constructor Summary
ConstructorsConstructorDescriptionImpl(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.player.LocalPlayer player, net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.item.ItemStack toolStack) Creates an instance of aImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.multiplayer.ClientLevellevel()Returns the value of thelevelrecord component.net.minecraft.world.inventory.AbstractContainerMenumenu()Returns the value of themenurecord component.net.minecraft.client.player.LocalPlayerplayer()Returns the value of theplayerrecord component.net.minecraft.world.item.ItemStackReturns the value of thetoolStackrecord component.final 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 petrolpark.mc.library.core.world.item.crafting.pocket.IPocketCraftingContext
recipeManager, registries
-
Constructor Details
-
Impl
public Impl(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.player.LocalPlayer player, net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.item.ItemStack toolStack) Creates an instance of aImplrecord class.- Parameters:
level- the value for thelevelrecord componentplayer- the value for theplayerrecord componentmenu- the value for themenurecord componenttoolStack- the value for thetoolStackrecord component
-
-
Method Details
-
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). -
level
public net.minecraft.client.multiplayer.ClientLevel level()Returns the value of thelevelrecord component.- Specified by:
levelin interfaceIPocketCraftingContext- Specified by:
levelin interfaceIPocketCraftingContext.Client- Returns:
- the value of the
levelrecord component
-
player
public net.minecraft.client.player.LocalPlayer player()Returns the value of theplayerrecord component.- Specified by:
playerin interfaceIPocketCraftingContext- Specified by:
playerin interfaceIPocketCraftingContext.Client- Returns:
- the value of the
playerrecord component
-
toolStack
public net.minecraft.world.item.ItemStack toolStack()Returns the value of thetoolStackrecord component.- Specified by:
toolStackin interfaceIPocketCraftingContext- Returns:
- the value of the
toolStackrecord component
-