Class EncasedAssemblageCTBehaviour

java.lang.Object
com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour
com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour.Base
com.simibubi.create.content.decoration.encasing.EncasedCTBehaviour
petrolpark.mc.petrolsparts.content.kinetics.assemblage.EncasedAssemblageCTBehaviour

public class EncasedAssemblageCTBehaviour extends com.simibubi.create.content.decoration.encasing.EncasedCTBehaviour
Largely copied from EncasedCogCTBehaviour
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour

    com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour.Base, com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour.ContextRequirement, com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour.CTContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
    protected final net.createmod.catnip.data.Couple<com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry>
     
    protected final com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry
     
    protected final net.createmod.catnip.data.Couple<com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncasedAssemblageCTBehaviour(com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry endShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry closedSideVerticalShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry closedSideHorizontalShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry openSideVerticalShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry openSideHorizontalShift)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    connectsTo(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState other, net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos otherPos, net.minecraft.core.Direction face)
     
    com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry
     
    com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry
    getShift(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
     
    protected boolean
    reverseUVs(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    protected boolean
    reverseUVsHorizontally(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    protected boolean
    reverseUVsVertically(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     

    Methods inherited from class com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour.Base

    getDataType

    Methods inherited from class com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour

    buildContext, buildContextForOccludedDirections, connectsTo, getCTBlockState, getRightDirection, getShift, getUpDirection, isBeingBlocked

    Methods inherited from class java.lang.Object

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

    • ANDESITE

      public static final EncasedAssemblageCTBehaviour ANDESITE
    • BRASS

      public static final EncasedAssemblageCTBehaviour BRASS
    • endShift

      protected final com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry endShift
    • closedSideShifts

      protected final net.createmod.catnip.data.Couple<com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry> closedSideShifts
    • openSideShifts

      protected final net.createmod.catnip.data.Couple<com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry> openSideShifts
  • Constructor Details

    • EncasedAssemblageCTBehaviour

      public EncasedAssemblageCTBehaviour(com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry endShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry closedSideVerticalShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry closedSideHorizontalShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry openSideVerticalShift, com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry openSideHorizontalShift)
  • Method Details

    • connectsTo

      public boolean connectsTo(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState other, net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos otherPos, net.minecraft.core.Direction face)
      Overrides:
      connectsTo in class com.simibubi.create.content.decoration.encasing.EncasedCTBehaviour
    • reverseUVs

      protected boolean reverseUVs(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
      Overrides:
      reverseUVs in class com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour
    • reverseUVsVertically

      protected boolean reverseUVsVertically(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
      Overrides:
      reverseUVsVertically in class com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour
    • reverseUVsHorizontally

      protected boolean reverseUVsHorizontally(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
      Overrides:
      reverseUVsHorizontally in class com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour
    • getShift

      public com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry getShift(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
      Overrides:
      getShift in class com.simibubi.create.content.decoration.encasing.EncasedCTBehaviour
    • getEndShift

      public com.simibubi.create.foundation.block.connected.CTSpriteShiftEntry getEndShift()