Class BlockDefinition
java.lang.Object
dev.rono.igniscore.api.model.BlockDefinition
- All Implemented Interfaces:
ExtensionDefinition
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse) BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId) BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId, String side1Texture, String side2Texture, String side3Texture, String side4Texture) BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> behaviorSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse) BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> behaviorSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId) BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> behaviorSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId, String side1Texture, String side2Texture, String side3Texture, String side4Texture) -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockDefinition.BuilderTyped view ofgetBehaviorSettings().Typed view ofgetBreakSettings().Typed view ofgetCustomData().intList<net.kyori.adventure.text.Component> Manifest strategy id used to register the extension'sIgnisStrategy.getId()In-game type id fromconfig.yml.Typed view ofgetInteractionSettings().getResolvedSideTexture(int face) net.kyori.adventure.text.ComponentgetTitle()booleanbooleanbooleanbooleanbooleanisPulse()booleanisRotate()
-
Constructor Details
-
BlockDefinition
public BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse) -
BlockDefinition
public BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> behaviorSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse) -
BlockDefinition
public BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId) -
BlockDefinition
public BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> behaviorSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId) -
BlockDefinition
public BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId, String side1Texture, String side2Texture, String side3Texture, String side4Texture) -
BlockDefinition
public BlockDefinition(String id, String baseMaterial, String renderMaterial, net.kyori.adventure.text.Component title, List<net.kyori.adventure.text.Component> description, boolean placeable, boolean breakable, String topTexture, String sideTexture, String bottomTexture, Map<String, Object> customData, Map<String, Object> breakSettings, Map<String, Object> behaviorSettings, Map<String, Object> interactionSettings, Map<String, Object> displaySettings, int customModelData, boolean rotate, boolean floatBob, boolean pulse, String extensionId, String side1Texture, String side2Texture, String side3Texture, String side4Texture)
-
-
Method Details
-
builder
-
getId
Description copied from interface:ExtensionDefinitionIn-game type id fromconfig.yml.- Specified by:
getIdin interfaceExtensionDefinition
-
getBaseMaterial
-
getRenderMaterial
-
getTitle
public net.kyori.adventure.text.Component getTitle() -
getDescription
-
isPlaceable
public boolean isPlaceable() -
isBreakable
public boolean isBreakable() -
getTopTexture
-
getSideTexture
-
getBottomTexture
-
getSide1Texture
-
getSide2Texture
-
getSide3Texture
-
getSide4Texture
-
hasPerSideTextures
public boolean hasPerSideTextures() -
getResolvedSideTexture
-
getCustomData
-
getBreakSettings
-
getBehaviorSettings
-
getInteractionSettings
-
getDisplaySettings
-
getCustomConfig
Typed view ofgetCustomData(). -
getBreakConfig
Typed view ofgetBreakSettings(). -
getBehaviorConfig
Typed view ofgetBehaviorSettings(). -
getInteractionConfig
Typed view ofgetInteractionSettings(). -
getCustomModelData
public int getCustomModelData() -
getExtensionId
Description copied from interface:ExtensionDefinitionManifest strategy id used to register the extension'sIgnisStrategy.- Specified by:
getExtensionIdin interfaceExtensionDefinition
-
isRotate
public boolean isRotate() -
isFloatBob
public boolean isFloatBob() -
isPulse
public boolean isPulse()
-