Record Class CompositePartModel
java.lang.Object
java.lang.Record
appeng.client.api.model.parts.CompositePartModel
- All Implemented Interfaces:
PartModel
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCompositePartModel(List<PartModel> models) Creates an instance of aCompositePartModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectParts(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.model.data.ModelData partModelData, net.minecraft.util.RandomSource random, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> parts) Collects model parts of this part model.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.models()Returns the value of themodelsrecord component.net.minecraft.client.resources.model.sprite.Material.Bakedfinal StringtoString()Returns a string representation of this record class.Methods inherited from interface PartModel
canAttachToStraightCable
-
Constructor Details
-
CompositePartModel
-
-
Method Details
-
collectParts
public void collectParts(net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.neoforged.neoforge.model.data.ModelData partModelData, net.minecraft.util.RandomSource random, List<net.minecraft.client.renderer.block.dispatch.BlockStateModelPart> parts) Description copied from interface:PartModelCollects model parts of this part model.- Specified by:
collectPartsin interfacePartModel- Parameters:
level- The level the part host is in.pos- The position the part host is located at.partModelData- Any part model state previously collected fromIPart.collectModelData(ModelData.Builder).
-
particleMaterial
public net.minecraft.client.resources.model.sprite.Material.Baked particleMaterial()- Specified by:
particleMaterialin interfacePartModel
-
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 withObjects::equals(Object,Object). -
models
-