Class MachineMultiblock
java.lang.Object
com.hrznstudio.titanium.api.multiblock.MachineMultiblock
- All Implemented Interfaces:
IMultiblock,net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
-
Constructor Summary
ConstructorsConstructorDescriptionMachineMultiblock(net.minecraft.resources.ResourceLocation resourceLocation, Predicate<net.minecraft.world.level.block.state.BlockState>[][][] multiblockStructure, net.minecraft.core.BlockPos controller) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateStructureMultiblock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction playerFacing) voiddestroyMultiblock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction facing) net.minecraft.resources.ResourceLocationClass<net.minecraft.world.level.block.Block>Predicate<net.minecraft.world.level.block.state.BlockState>[][][]booleanisController(int x, int y, int z) booleanisStructureMultiblock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction playerFacing) net.minecraft.world.level.block.BlocksetRegistryName(net.minecraft.resources.ResourceLocation name)
-
Constructor Details
-
MachineMultiblock
public MachineMultiblock(net.minecraft.resources.ResourceLocation resourceLocation, Predicate<net.minecraft.world.level.block.state.BlockState>[][][] multiblockStructure, net.minecraft.core.BlockPos controller)
-
-
Method Details
-
getStructureBlocks
- Specified by:
getStructureBlocksin interfaceIMultiblock
-
isController
public boolean isController(int x, int y, int z) - Specified by:
isControllerin interfaceIMultiblock
-
isStructureMultiblock
public boolean isStructureMultiblock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction playerFacing) - Specified by:
isStructureMultiblockin interfaceIMultiblock
-
createStructureMultiblock
public void createStructureMultiblock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction playerFacing) - Specified by:
createStructureMultiblockin interfaceIMultiblock
-
destroyMultiblock
public void destroyMultiblock(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction facing) - Specified by:
destroyMultiblockin interfaceIMultiblock
-
setRegistryName
public net.minecraft.world.level.block.Block setRegistryName(net.minecraft.resources.ResourceLocation name) - Specified by:
setRegistryNamein interfacenet.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
-
getRegistryName
@Nullable public net.minecraft.resources.ResourceLocation getRegistryName()- Specified by:
getRegistryNamein interfacenet.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
-
getRegistryType
- Specified by:
getRegistryTypein interfacenet.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
-