Class ConnectedTextureBehaviour
java.lang.Object
com.simibubi.create.foundation.block.connected.ConnectedTextureBehaviour
- Direct Known Subclasses:
ConnectedTextureBehaviour.Base
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildContext(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face, ConnectedTextureBehaviour.ContextRequirement requirement) booleanbooleanconnectsTo(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) booleanconnectsTo(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) abstract @Nullable CTTypegetDataType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction) protected net.minecraft.core.DirectiongetRightDirection(net.minecraft.world.level.BlockAndTintGetter reader, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) abstract @Nullable CTSpriteShiftEntrygetShift(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, @NotNull net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) protected net.minecraft.core.DirectiongetUpDirection(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 booleanisBeingBlocked(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 booleanreverseUVs(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) protected booleanreverseUVsHorizontally(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face) protected booleanreverseUVsVertically(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction face)
-
Constructor Details
-
ConnectedTextureBehaviour
public ConnectedTextureBehaviour()
-
-
Method Details
-
getShift
@Nullable public abstract @Nullable CTSpriteShiftEntry getShift(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, @NotNull @NotNull net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) -
getDataType
@Nullable public abstract @Nullable CTType getDataType(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction) -
buildContextForOccludedDirections
public boolean buildContextForOccludedDirections() -
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) -
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) -
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) -
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) -
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, ConnectedTextureBehaviour.ContextRequirement requirement)
-