package software.bernie.geckolib.model; import net.minecraft.class_2960; import software.bernie.geckolib.animatable.GeoAnimatable; /** * {@link DefaultedGeoModel} specific to {@link net.minecraft.class_2248 Blocks} *

* Using this class pre-sorts provided asset paths into the "block" subdirectory */ public class DefaultedBlockGeoModel extends DefaultedGeoModel { /** * Create a new instance of this model class *

* The asset path should be the truncated relative path from the base folder *

* E.G. *

{@code
	 * 	new ResourceLocation("myMod", "workbench/sawmill")
	 * }
*/ public DefaultedBlockGeoModel(class_2960 assetSubpath) { super(assetSubpath); } /** * Returns the subtype string for this type of model *

* This allows for sorting of asset files into neat subdirectories for clean management. */ @Override protected String subtype() { return "block"; } /** * Changes the constructor-defined model path for this model to an alternate *

* This is useful if your animatable shares a model path with another animatable that differs in path to the texture and animations for this model */ @Override public DefaultedBlockGeoModel withAltModel(class_2960 altPath) { return (DefaultedBlockGeoModel)super.withAltModel(altPath); } /** * Changes the constructor-defined animations path for this model to an alternate *

* This is useful if your animatable shares an animations path with another animatable that differs in path to the model and texture for this model */ @Override public DefaultedBlockGeoModel withAltAnimations(class_2960 altPath) { return (DefaultedBlockGeoModel)super.withAltAnimations(altPath); } /** * Changes the constructor-defined texture path for this model to an alternate *

* This is useful if your animatable shares a texture path with another animatable that differs in path to the model and animations for this model */ @Override public DefaultedBlockGeoModel withAltTexture(class_2960 altPath) { return (DefaultedBlockGeoModel)super.withAltTexture(altPath); } }