Record Class MobCustomer.Provider
java.lang.Object
java.lang.Record
petrolpark.mc.library.core.world.restaurant.customer.MobCustomer.Provider
- All Implemented Interfaces:
ICustomer.Provider
- Enclosing class:
MobCustomer
public static record MobCustomer.Provider(int entityId, UUID entityUuid, int orderId)
extends Record
implements ICustomer.Provider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MobCustomer.Provider> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, MobCustomer.Provider> Fields inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer.Provider
TYPED_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintentityId()Returns the value of theentityIdrecord component.Returns the value of theentityUuidrecord component.final booleanIndicates whether some other object is "equal to" this one.getUpdated(net.minecraft.world.level.Level level) final inthashCode()Returns a hash code value for this object.intorderId()Returns the value of theorderIdrecord component.provideCustomer(net.minecraft.world.level.Level level) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,MobCustomer.Provider> STREAM_CODEC
-
-
Constructor Details
-
Provider
Creates an instance of aProviderrecord class.- Parameters:
entityId- the value for theentityIdrecord componententityUuid- the value for theentityUuidrecord componentorderId- the value for theorderIdrecord component
-
-
Method Details
-
provideCustomer
- Specified by:
provideCustomerin interfaceICustomer.Provider
-
getUpdated
- Specified by:
getUpdatedin interfaceICustomer.Provider
-
getProviderType
- Specified by:
getProviderTypein interfaceICustomer.Provider
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
entityId
public int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
entityUuid
Returns the value of theentityUuidrecord component.- Returns:
- the value of the
entityUuidrecord component
-
orderId
public int orderId()Returns the value of theorderIdrecord component.- Returns:
- the value of the
orderIdrecord component
-