Class ConnectedTextureBehaviour

java.lang.Object
com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour
Direct Known Subclasses:
BrassTunnelCTBehaviour, ConnectedOreCTBehaviour, CrafterCTBehaviour, EncasedCTBehaviour, HorizontalCTBehaviour, ItemVaultCTBehaviour, LinearChassisBlock.ChassisCTBehaviour, StandardCTBehaviour

public abstract class ConnectedTextureBehaviour extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    buildContext(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    boolean
     
    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)
     
    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, net.minecraft.core.Direction primaryOffset, net.minecraft.core.Direction secondaryOffset)
     
    get(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
     
    protected net.minecraft.core.Direction
    getRightDirection(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    protected net.minecraft.core.Direction
    getUpDirection(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
     
    protected boolean
    isBeingBlocked(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos otherPos, net.minecraft.core.Direction face)
     
    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 java.lang.Object

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

    • ConnectedTextureBehaviour

      public ConnectedTextureBehaviour()
  • Method Details

    • get

      public abstract CTSpriteShiftEntry get(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction)
    • reverseUVs

      protected boolean reverseUVs(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
    • reverseUVsHorizontally

      protected boolean reverseUVsHorizontally(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
    • reverseUVsVertically

      protected boolean reverseUVsVertically(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
    • buildContextForOccludedDirections

      public boolean buildContextForOccludedDirections()
    • 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, net.minecraft.core.Direction primaryOffset, net.minecraft.core.Direction secondaryOffset)
    • 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)
    • isBeingBlocked

      protected boolean isBeingBlocked(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.core.BlockPos otherPos, net.minecraft.core.Direction face)
    • buildContext

      public ConnectedTextureBehaviour.CTContext buildContext(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
    • getUpDirection

      protected net.minecraft.core.Direction getUpDirection(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
    • getRightDirection

      protected net.minecraft.core.Direction getRightDirection(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)