CustomConnectedBlockPattern

public class CustomConnectedBlockPattern extends CustomTemplateConnectedBlockPattern

Class CustomConnectedBlockPattern. Provides customconnectedblockpattern functionality for the Hytale server.

java.lang.Object > CustomTemplateConnectedBlockPattern > CustomConnectedBlockPattern

Field Summary

transformRulesToOrientation

private boolean transformRulesToOrientation

Field transformRulesToOrientation.

patternRotationDefinition

private PatternRotationDefinition patternRotationDefinition

Field patternRotationDefinition.

rulesToMatch

private ConnectedBlockPatternRule[] rulesToMatch

Field rulesToMatch.

yawToApplyAddReplacedBlockType

private Rotation yawToApplyAddReplacedBlockType

Field yawToApplyAddReplacedBlockType.

requireFaceTagsMatchingRoll

private boolean requireFaceTagsMatchingRoll

Field requireFaceTagsMatchingRoll.

onlyOnUpdate

private boolean onlyOnUpdate

Field onlyOnUpdate.

onlyOnPlacement

private boolean onlyOnPlacement

Field onlyOnPlacement.

checkingBlockType

final BlockType checkingBlockType

Field checkingBlockType.

checkingRuleSet

final ConnectedBlockRuleSet checkingRuleSet

Field checkingRuleSet.

checkingConnectedBlockRuleSet

final CustomTemplateConnectedBlockRuleSet checkingConnectedBlockRuleSet

Field checkingConnectedBlockRuleSet.

index

final int index

Field index.

shapeNames

final Set shapeNames

Field shapeNames.

checkingTemplateAsset

final CustomConnectedBlockTemplateAsset checkingTemplateAsset

Field checkingTemplateAsset.

blockToCheckConnectedBlockShape

final ConnectedBlockShape blockToCheckConnectedBlockShape

Field blockToCheckConnectedBlockShape.

adjustedDirectionOfPattern

final Vector3i adjustedDirectionOfPattern

Field adjustedDirectionOfPattern.

containsFaceTag

final boolean containsFaceTag

Field containsFaceTag.

shapeTemplate

final CustomConnectedBlockTemplateAsset shapeTemplate

Field shapeTemplate.

totalRotation

final Rotation3D totalRotation

Field totalRotation.

tempRotation

final Rotation3D tempRotation

Field tempRotation.

rotationTuple

final RotationTuple rotationTuple

Field rotationTuple.

chunkIfLoaded

final WorldChunk chunkIfLoaded

Field chunkIfLoaded.

blockToCheckUnrotated

final String blockToCheckUnrotated

Field blockToCheckUnrotated.

blockTypeToCheckUnrotated

final BlockType blockTypeToCheckUnrotated

Field blockTypeToCheckUnrotated.

newYawMirrored

final Rotation newYawMirrored

Field newYawMirrored.

patternMatches

final boolean patternMatches

Field patternMatches.

resultBlockPattern

final BlockPattern resultBlockPattern

Field resultBlockPattern.

resultBlockTypeKey

final BlockPattern.BlockEntry resultBlockTypeKey

Field resultBlockTypeKey.

baseBlockTypeForFlip

final BlockType baseBlockTypeForFlip

Field baseBlockTypeForFlip.

flipType

final BlockFlipType flipType

Field flipType.

newYawMirrored2

final Rotation newYawMirrored2

Field newYawMirrored2.

Method Detail

CustomConnectedBlockPattern

public public CustomConnectedBlockPattern ()

Method CustomConnectedBlockPattern.

checkPatternRuleAgainstBlockType

static boolean checkPatternRuleAgainstBlockType (@Nonnull final CustomTemplateConnectedBlockRuleSet placedRuleset, @Nonnull final CustomConnectedBlockTemplateAsset template, @Nonnull final String block, @Nonnull final ConnectedBlockPatternRule rule, @Nonnull final String blockToTest, final RotationTuple rotationToCheckUnrotated, final int fillerToCheckUnrotated)

Method checkPatternRuleAgainstBlockType.

Parameters:
@Nonnull final CustomTemplateConnectedBlockRuleSet placedRuleset
@Nonnull final CustomConnectedBlockTemplateAsset template
@Nonnull final String block
@Nonnull final ConnectedBlockPatternRule rule
@Nonnull final String blockToTest
final RotationTuple rotationToCheckUnrotated
final int fillerToCheckUnrotated

getConnectedBlockTypeKey

public Optional getConnectedBlockTypeKey (final String shapeName, @Nonnull final World world, @Nonnull final Vector3i coordinate, @Nonnull final CustomTemplateConnectedBlockRuleSet connectedBlockRuleset, @Nonnull final BlockType blockType, final int rotation, @Nonnull final Vector3i placementNormal, final boolean isPlacement)

Method getConnectedBlockTypeKey.

Parameters:
final String shapeName
@Nonnull final World world
@Nonnull final Vector3i coordinate
@Nonnull final CustomTemplateConnectedBlockRuleSet connectedBlockRuleset
@Nonnull final BlockType blockType
final int rotation
@Nonnull final Vector3i placementNormal
final boolean isPlacement

pattern

public its pattern (fence corner rotates depending on which two sides have the corner fence shape)

Method pattern.

Parameters:
fence corner rotates depending on which two sides have the corner fence shape