Package de.cech12.bucketlib.client.model
Record Class UniversalBucketModel.Unbaked
java.lang.Object
java.lang.Record
de.cech12.bucketlib.client.model.UniversalBucketModel.Unbaked
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel.Unbaked,net.minecraft.client.resources.model.ResolvableModel
- Enclosing class:
UniversalBucketModel
public static record UniversalBucketModel.Unbaked(UniversalBucketModel.Unbaked.Textures textures, List<net.minecraft.client.color.item.ItemTintSource> tints)
extends Record
implements net.minecraft.client.renderer.item.ItemModel.Unbaked
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
net.minecraft.client.resources.model.ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<UniversalBucketModel.Unbaked> -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(UniversalBucketModel.Unbaked.Textures textures, List<net.minecraft.client.color.item.ItemTintSource> tints) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.client.renderer.item.ItemModelbake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidresolveDependencies(@NotNull net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) textures()Returns the value of thetexturesrecord component.List<net.minecraft.client.color.item.ItemTintSource> tints()Returns the value of thetintsrecord component.final StringtoString()Returns a string representation of this record class.@NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.item.ItemModel.Unbaked> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(UniversalBucketModel.Unbaked.Textures textures, List<net.minecraft.client.color.item.ItemTintSource> tints) Creates an instance of aUnbakedrecord class.- Parameters:
textures- the value for thetexturesrecord componenttints- the value for thetintsrecord component
-
-
Method Details
-
type
@NotNull public @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.client.renderer.item.ItemModel.Unbaked> type()- Specified by:
typein interfacenet.minecraft.client.renderer.item.ItemModel.Unbaked
-
bake
@NotNull public @NotNull net.minecraft.client.renderer.item.ItemModel bake(@NotNull net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext) - Specified by:
bakein interfacenet.minecraft.client.renderer.item.ItemModel.Unbaked
-
resolveDependencies
public void resolveDependencies(@NotNull @NotNull net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) - Specified by:
resolveDependenciesin interfacenet.minecraft.client.resources.model.ResolvableModel
-
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). -
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
tints
Returns the value of thetintsrecord component.- Returns:
- the value of the
tintsrecord component
-