Class ConnectingModelBuilder

java.lang.Object
net.minecraftforge.client.model.generators.ModelFile
net.minecraftforge.client.model.generators.ModelBuilder<ConnectingModelBuilder>
com.supermartijn642.rechiseled.api.ConnectingModelBuilder

@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.2.0") public class ConnectingModelBuilder extends net.minecraftforge.client.model.generators.ModelBuilder<ConnectingModelBuilder>
Deprecated, for removal: This API element is subject to removal in a future version.
Created 24/01/2022 by SuperMartijn642
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.ModelBuilder

    net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder, net.minecraftforge.client.model.generators.ModelBuilder.FaceRotation, net.minecraftforge.client.model.generators.ModelBuilder.RootTransformsBuilder, net.minecraftforge.client.model.generators.ModelBuilder.TransformsBuilder

    Nested classes/interfaces inherited from class net.minecraftforge.client.model.generators.ModelFile

    net.minecraftforge.client.model.generators.ModelFile.ExistingModelFile, net.minecraftforge.client.model.generators.ModelFile.UncheckedModelFile
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<String,Boolean>
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Fields inherited from class net.minecraftforge.client.model.generators.ModelBuilder

    ambientOcclusion, customLoader, elements, existingFileHelper, guiLight, parent, renderType, textures, transforms

    Fields inherited from class net.minecraftforge.client.model.generators.ModelFile

    location
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConnectingModelBuilder(net.minecraft.resources.ResourceLocation outputLocation, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Indicate that any connecting textures should connect to touching blocks.
    connectToOtherBlocks(boolean connect)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Indicate whether any connecting textures should connect to touching blocks.
    texture(String key, String texture)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    texture(String key, String texture, boolean isConnectingTexture)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the texture for a given dictionary key.
    texture(String key, net.minecraft.resources.ResourceLocation texture)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    texture(String key, net.minecraft.resources.ResourceLocation texture, boolean isConnectingTexture)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the texture for a given dictionary key.
    com.google.gson.JsonObject
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class net.minecraftforge.client.model.generators.ModelBuilder

    ao, customLoader, element, element, exists, getElementCount, guiLight, parent, renderType, renderType, rootTransforms, transforms

    Methods inherited from class net.minecraftforge.client.model.generators.ModelFile

    assertExistence, getLocation, getUncheckedLocation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • connectingTextures

      protected final Map<String,Boolean> connectingTextures
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ConnectingModelBuilder

      public ConnectingModelBuilder(net.minecraft.resources.ResourceLocation outputLocation, net.minecraftforge.common.data.ExistingFileHelper existingFileHelper)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • connectToOtherBlocks

      public ConnectingModelBuilder connectToOtherBlocks()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Indicate that any connecting textures should connect to touching blocks.
    • connectToOtherBlocks

      public ConnectingModelBuilder connectToOtherBlocks(boolean connect)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Indicate whether any connecting textures should connect to touching blocks. If false, any connecting textures will show their top left texture (the fully bordered one).
    • texture

      public ConnectingModelBuilder texture(String key, String texture, boolean isConnectingTexture)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the texture for a given dictionary key.
      Parameters:
      key - the texture key
      texture - the texture, can be another reference e.g. '#all'
      isConnectingTexture - whether the texture is a connecting texture
      Throws:
      NullPointerException - when key is null
      NullPointerException - when texture is null
      IllegalStateException - when texture is not a reference (does not start with '#') and does not exist
      IllegalArgumentException - when texture is a reference (starts with '#') and isConnectingTexture is true
    • texture

      public ConnectingModelBuilder texture(String key, net.minecraft.resources.ResourceLocation texture, boolean isConnectingTexture)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the texture for a given dictionary key.
      Parameters:
      key - the texture key
      texture - the texture
      isConnectingTexture - whether the texture is a connecting texture
      Throws:
      NullPointerException - when key is null
      NullPointerException - when texture is null
      IllegalStateException - when texture does not exist
    • texture

      public ConnectingModelBuilder texture(String key, String texture)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      texture in class net.minecraftforge.client.model.generators.ModelBuilder<ConnectingModelBuilder>
    • texture

      public ConnectingModelBuilder texture(String key, net.minecraft.resources.ResourceLocation texture)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      texture in class net.minecraftforge.client.model.generators.ModelBuilder<ConnectingModelBuilder>
    • toJson

      public com.google.gson.JsonObject toJson()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toJson in class net.minecraftforge.client.model.generators.ModelBuilder<ConnectingModelBuilder>