Class CustomStructureTemplateMixin
java.lang.Object
me.emafire003.dev.structureplacerapi.mixin.CustomStructureTemplateMixin
- All Implemented Interfaces:
ICustomStructureTemplate
public abstract class CustomStructureTemplateMixin
extends Object
implements ICustomStructureTemplate
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleannet.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>booleanbooleanbooleanbooleanbooleannet.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo>modifyPlace(List<net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate.StructureBlockInfo> original, net.minecraft.world.level.ServerLevelAccessor world) booleanbooleannet.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>booleanbooleanbooleanbooleannet.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>booleanvoidvoidvoidstructurePlacerAPI$setBlockPlacedCheck(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> blocks) voidstructurePlacerAPI$setBlockReplacedCheck(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> blocks) voidstructurePlacerAPI$setCustom(boolean custom) This is used to tell the StructureTemplate that we are using the StructurePlacerApi systemvoidvoidvoidstructurePlacerAPI$setOnlyReplaceTagBlocks(boolean replace, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) Weather or not this structure should only replace blocks with a certain tag, like Air blocksvoidstructurePlacerAPI$setPreventReplacementOfTagBlocks(boolean replace, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) Weather or not this structure should replace the blocks with the specified tagvoidstructurePlacerAPI$setReplaceBarrier(boolean replace) Weather or not this structure should replace the barrier blockvoidstructurePlacerAPI$setReplaceBedrock(boolean replace) Weather or not this structure should replace the bedrockvoidstructurePlacerAPI$setTaggedBlocks(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
-
Field Details
-
isCustomStructureTemplate
public boolean isCustomStructureTemplate -
replaceBedrock
public boolean replaceBedrock -
replaceBarrier
public boolean replaceBarrier -
preventReplacementOfTagBlocks
public boolean preventReplacementOfTagBlocks -
onlyReplaceTaggedBlocks
public boolean onlyReplaceTaggedBlocks -
taggedBlocks
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> taggedBlocks -
actOnBlockStructurePlacing
public boolean actOnBlockStructurePlacing -
actOnBlockReplacedByStructure
public boolean actOnBlockReplacedByStructure -
onBlockPlacingInStructure
-
onBlockReplacedByStructure
-
blockPlacedCheck
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> blockPlacedCheck -
blockReplacedCheck
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> blockReplacedCheck
-
-
Constructor Details
-
CustomStructureTemplateMixin
public CustomStructureTemplateMixin()
-
-
Method Details
-
structurePlacerAPI$setCustom
public void structurePlacerAPI$setCustom(boolean custom) Description copied from interface:ICustomStructureTemplateThis is used to tell the StructureTemplate that we are using the StructurePlacerApi system- Specified by:
structurePlacerAPI$setCustomin interfaceICustomStructureTemplate
-
structurePlacerAPI$isCustom
public boolean structurePlacerAPI$isCustom()- Specified by:
structurePlacerAPI$isCustomin interfaceICustomStructureTemplate
-
structurePlacerAPI$setReplaceBedrock
public void structurePlacerAPI$setReplaceBedrock(boolean replace) Description copied from interface:ICustomStructureTemplateWeather or not this structure should replace the bedrock- Specified by:
structurePlacerAPI$setReplaceBedrockin interfaceICustomStructureTemplate
-
structurePlacerAPI$getReplaceBedrock
public boolean structurePlacerAPI$getReplaceBedrock()- Specified by:
structurePlacerAPI$getReplaceBedrockin interfaceICustomStructureTemplate
-
structurePlacerAPI$setReplaceBarrier
public void structurePlacerAPI$setReplaceBarrier(boolean replace) Description copied from interface:ICustomStructureTemplateWeather or not this structure should replace the barrier block- Specified by:
structurePlacerAPI$setReplaceBarrierin interfaceICustomStructureTemplate
-
structurePlacerAPI$getReplaceBarrier
public boolean structurePlacerAPI$getReplaceBarrier()- Specified by:
structurePlacerAPI$getReplaceBarrierin interfaceICustomStructureTemplate
-
structurePlacerAPI$setOnlyReplaceTagBlocks
public void structurePlacerAPI$setOnlyReplaceTagBlocks(boolean replace, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) Description copied from interface:ICustomStructureTemplateWeather or not this structure should only replace blocks with a certain tag, like Air blocks- Specified by:
structurePlacerAPI$setOnlyReplaceTagBlocksin interfaceICustomStructureTemplate
-
structurePlacerAPI$getOnlyReplaceTagBlocks
public boolean structurePlacerAPI$getOnlyReplaceTagBlocks()- Specified by:
structurePlacerAPI$getOnlyReplaceTagBlocksin interfaceICustomStructureTemplate
-
structurePlacerAPI$setPreventReplacementOfTagBlocks
public void structurePlacerAPI$setPreventReplacementOfTagBlocks(boolean replace, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) Description copied from interface:ICustomStructureTemplateWeather or not this structure should replace the blocks with the specified tag- Specified by:
structurePlacerAPI$setPreventReplacementOfTagBlocksin interfaceICustomStructureTemplate
-
structurePlacerAPI$getPreventReplacementOfTagBlocks
public boolean structurePlacerAPI$getPreventReplacementOfTagBlocks()- Specified by:
structurePlacerAPI$getPreventReplacementOfTagBlocksin interfaceICustomStructureTemplate
-
structurePlacerAPI$setTaggedBlocks
public void structurePlacerAPI$setTaggedBlocks(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) Description copied from interface:ICustomStructureTemplateSets the tag for the blocks needed forICustomStructureTemplate.structurePlacerAPI$setPreventReplacementOfTagBlocks(boolean, TagKey)orICustomStructureTemplate.structurePlacerAPI$setOnlyReplaceTagBlocks(boolean, TagKey)- Specified by:
structurePlacerAPI$setTaggedBlocksin interfaceICustomStructureTemplate
-
structurePlacerAPI$getTaggedBlocks
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> structurePlacerAPI$getTaggedBlocks()- Specified by:
structurePlacerAPI$getTaggedBlocksin interfaceICustomStructureTemplate
-
structurePlacerAPI$setActOnBlockStructurePlacing
public void structurePlacerAPI$setActOnBlockStructurePlacing(boolean b) - Specified by:
structurePlacerAPI$setActOnBlockStructurePlacingin interfaceICustomStructureTemplate
-
structurePlacerAPI$getActOnBlockStructurePlacing
public boolean structurePlacerAPI$getActOnBlockStructurePlacing()- Specified by:
structurePlacerAPI$getActOnBlockStructurePlacingin interfaceICustomStructureTemplate
-
structurePlacerAPI$setActOnBlockReplacedByStructure
public void structurePlacerAPI$setActOnBlockReplacedByStructure(boolean b) - Specified by:
structurePlacerAPI$setActOnBlockReplacedByStructurein interfaceICustomStructureTemplate
-
structurePlacerAPI$getActOnBlockReplacedByStructure
public boolean structurePlacerAPI$getActOnBlockReplacedByStructure()- Specified by:
structurePlacerAPI$getActOnBlockReplacedByStructurein interfaceICustomStructureTemplate
-
structurePlacerAPI$setOnBlockPlacingInStructure
- Specified by:
structurePlacerAPI$setOnBlockPlacingInStructurein interfaceICustomStructureTemplate
-
structurePlacerAPI$getOnBlockPlacingInStructure
- Specified by:
structurePlacerAPI$getOnBlockPlacingInStructurein interfaceICustomStructureTemplate
-
structurePlacerAPI$setOnBlockReplacedByStructure
- Specified by:
structurePlacerAPI$setOnBlockReplacedByStructurein interfaceICustomStructureTemplate
-
structurePlacerAPI$getOnBlockReplacedByStructure
- Specified by:
structurePlacerAPI$getOnBlockReplacedByStructurein interfaceICustomStructureTemplate
-
structurePlacerAPI$setBlockPlacedCheck
public void structurePlacerAPI$setBlockPlacedCheck(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> blocks) - Specified by:
structurePlacerAPI$setBlockPlacedCheckin interfaceICustomStructureTemplate
-
structurePlacerAPI$getBlockPlacedCheck
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> structurePlacerAPI$getBlockPlacedCheck()- Specified by:
structurePlacerAPI$getBlockPlacedCheckin interfaceICustomStructureTemplate
-
structurePlacerAPI$setBlockReplacedCheck
public void structurePlacerAPI$setBlockReplacedCheck(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> blocks) - Specified by:
structurePlacerAPI$setBlockReplacedCheckin interfaceICustomStructureTemplate
-
structurePlacerAPI$getBlockReplacedCheck
public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> structurePlacerAPI$getBlockReplacedCheck()- Specified by:
structurePlacerAPI$getBlockReplacedCheckin interfaceICustomStructureTemplate
-
modifyPlace
-