Package com.hbm_m.client.model.variant
Class DoorSkin
java.lang.Object
com.hbm_m.client.model.variant.DoorSkin
Определение скина (текстуры) для двери.
Применяется только к MODERN модели.
Отображаемое имя берётся из локализации: door.skin.{modid}.{doorId}.{skinId}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DoorSkinfromJson(com.google.gson.JsonObject json) net.minecraft.network.chat.ComponentgetDisplayName(String doorId) getId()net.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationgetTextureForPart(String materialName) Получить текстуру для конкретной части модели (материала из .mtl)net.minecraft.resources.ResourceLocationinthashCode()booleanstatic DoorSkinstatic DoorSkintoString()
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
DoorSkin
-
-
Method Details
-
getId
-
getDisplayName
-
getTexturePath
public net.minecraft.resources.ResourceLocation getTexturePath() -
getTextureForPart
Получить текстуру для конкретной части модели (материала из .mtl)- Parameters:
materialName- имя материала (например "label" или "default")
-
isDefault
public boolean isDefault() -
getModelPath
public net.minecraft.resources.ResourceLocation getModelPath() -
fromJson
-
of
-
of
-
equals
-
hashCode
public int hashCode() -
toString
-