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
* The asset path should be the truncated relative path from the base folder
*
* E.G.
*
* 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
* 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
* 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{@code
* new ResourceLocation("myMod", "workbench/sawmill")
* }
*/
public DefaultedBlockGeoModel(class_2960 assetSubpath) {
super(assetSubpath);
}
/**
* Returns the subtype string for this type of model
*