Record Class WerewolfModelWrapper<T extends net.minecraft.world.entity.LivingEntity>
java.lang.Object
java.lang.Record
de.teamlapen.werewolves.client.render.WerewolfModelWrapper<T>
public record WerewolfModelWrapper<T extends net.minecraft.world.entity.LivingEntity>(WerewolfBaseModel<T extends net.minecraft.world.entity.LivingEntity> model, Collection<? extends net.minecraft.client.renderer.entity.layers.RenderLayer<T extends net.minecraft.world.entity.LivingEntity,WerewolfBaseModel<T extends net.minecraft.world.entity.LivingEntity>>> layers, List<net.minecraft.resources.ResourceLocation> textures, float shadow, boolean skipPlayerModel)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWerewolfModelWrapper.Builder<T extends net.minecraft.world.entity.LivingEntity> -
Constructor Summary
ConstructorsConstructorDescriptionWerewolfModelWrapper(WerewolfBaseModel<T> model, Collection<? extends net.minecraft.client.renderer.entity.layers.RenderLayer<T, WerewolfBaseModel<T>>> layers, List<net.minecraft.resources.ResourceLocation> textures, float shadow, boolean skipPlayerModel) Creates an instance of aWerewolfModelWrapperrecord 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.Collection<? extends net.minecraft.client.renderer.entity.layers.RenderLayer<T,WerewolfBaseModel<T>>> layers()Returns the value of thelayersrecord component.model()Returns the value of themodelrecord component.floatshadow()Returns the value of theshadowrecord component.booleanReturns the value of theskipPlayerModelrecord component.List<net.minecraft.resources.ResourceLocation>textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WerewolfModelWrapper
public WerewolfModelWrapper(WerewolfBaseModel<T> model, Collection<? extends net.minecraft.client.renderer.entity.layers.RenderLayer<T, WerewolfBaseModel<T>>> layers, List<net.minecraft.resources.ResourceLocation> textures, float shadow, boolean skipPlayerModel) Creates an instance of aWerewolfModelWrapperrecord class.- Parameters:
model- the value for themodelrecord componentlayers- the value for thelayersrecord componenttextures- the value for thetexturesrecord componentshadow- the value for theshadowrecord componentskipPlayerModel- the value for theskipPlayerModelrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
layers
public Collection<? extends net.minecraft.client.renderer.entity.layers.RenderLayer<T,WerewolfBaseModel<T>>> layers()Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
shadow
public float shadow()Returns the value of theshadowrecord component.- Returns:
- the value of the
shadowrecord component
-
skipPlayerModel
public boolean skipPlayerModel()Returns the value of theskipPlayerModelrecord component.- Returns:
- the value of the
skipPlayerModelrecord component
-