Class ConvertibleBlockPair

java.lang.Object
io.github.vampirestudios.vampirelib.api.ConvertibleBlockPair

public class ConvertibleBlockPair extends Object
This class is used to hold the link between two different blocks (See for example OxidizableBlocksRegistry.registerOxidizableBlockPair(Block, Block) and OxidizableBlocksRegistry.registerWaxableBlockPair(Block, Block))
  • Constructor Details

    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItems)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItems - - The item that is used to convert the original block into the converted block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItems, net.minecraft.sounds.SoundEvent sound)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItems - - The item that is used to convert the original block into the converted block
      sound - - The item that is used to reverse the converted block into the original block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItems, net.minecraft.world.item.Item droppedItem)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItems - - The item that is used to convert the original block into the converted block
      droppedItem - - The item that is dropped when converting the block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItems, net.minecraft.sounds.SoundEvent sound, net.minecraft.world.item.Item droppedItem)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItems - - The item that is used to convert the original block into the converted block
      sound - - The item that is used to reverse the converted block into the original block
      droppedItem - - The item that is dropped when converting the block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItem, ConvertibleBlockPair.ConversionItem reversingItem)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItem - - The item that is used to convert the original block into the converted block
      reversingItem - - The item that is used to reverse the converted block into the original block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItem, ConvertibleBlockPair.ConversionItem reversingItem, net.minecraft.sounds.SoundEvent sound)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItem - - The item that is used to convert the original block into the converted block
      reversingItem - - The item that is used to reverse the converted block into the original block
      sound - - The item that is used to reverse the converted block into the original block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItem, ConvertibleBlockPair.ConversionItem reversingItem, net.minecraft.world.item.Item droppedItem)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItem - - The item that is used to convert the original block into the converted block
      reversingItem - - The item that is used to reverse the converted block into the original block
      droppedItem - - The item that is dropped when converting the block
    • ConvertibleBlockPair

      public ConvertibleBlockPair(net.minecraft.world.level.block.Block original, net.minecraft.world.level.block.Block converted, ConvertibleBlockPair.ConversionItem conversionItem, ConvertibleBlockPair.ConversionItem reversingItem, net.minecraft.sounds.SoundEvent sound, net.minecraft.world.item.Item droppedItem)
      Parameters:
      original - - The original block which will be converted
      converted - - The block that the original one will be converted to
      conversionItem - - The item that is used to convert the original block into the converted block
      reversingItem - - The item that is used to reverse the converted block into the original block
      sound - - The item that is used to reverse the converted block into the original block
  • Method Details

    • setSound

      public void setSound(net.minecraft.sounds.SoundEvent sound)
    • getSound

      public net.minecraft.sounds.SoundEvent getSound()
    • getOriginal

      public net.minecraft.world.level.block.Block getOriginal()
    • getConverted

      public net.minecraft.world.level.block.Block getConverted()
    • getConversionItem

      public ConvertibleBlockPair.ConversionItem getConversionItem()
    • getReversingItem

      public ConvertibleBlockPair.ConversionItem getReversingItem()
    • setDroppedItem

      public void setDroppedItem(net.minecraft.world.item.Item droppedItem)
    • getDroppedItem

      public net.minecraft.world.item.Item getDroppedItem()