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>

public class MachineMultiblock extends Object implements IMultiblock
  • Constructor Summary

    Constructors
    Constructor
    Description
    MachineMultiblock​(net.minecraft.resources.ResourceLocation resourceLocation, Predicate<net.minecraft.world.level.block.state.BlockState>[][][] multiblockStructure, net.minecraft.core.BlockPos controller)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    net.minecraft.resources.ResourceLocation
     
    Class<net.minecraft.world.level.block.Block>
     
    Predicate<net.minecraft.world.level.block.state.BlockState>[][][]
     
    boolean
    isController​(int x, int y, int z)
     
    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)
     
    net.minecraft.world.level.block.Block
    setRegistryName​(net.minecraft.resources.ResourceLocation name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Predicate<net.minecraft.world.level.block.state.BlockState>[][][] getStructureBlocks()
      Specified by:
      getStructureBlocks in interface IMultiblock
    • isController

      public boolean isController​(int x, int y, int z)
      Specified by:
      isController in interface IMultiblock
    • 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:
      isStructureMultiblock in interface IMultiblock
    • 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:
      createStructureMultiblock in interface IMultiblock
    • 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:
      destroyMultiblock in interface IMultiblock
    • setRegistryName

      public net.minecraft.world.level.block.Block setRegistryName​(net.minecraft.resources.ResourceLocation name)
      Specified by:
      setRegistryName in interface net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
    • getRegistryName

      @Nullable public net.minecraft.resources.ResourceLocation getRegistryName()
      Specified by:
      getRegistryName in interface net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
    • getRegistryType

      public Class<net.minecraft.world.level.block.Block> getRegistryType()
      Specified by:
      getRegistryType in interface net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>