Class TileEntityNote

java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityNote

public class TileEntityNote extends TileEntity
  • Field Details

    • note

      public byte note
      Note to play
    • previousRedstoneState

      public boolean previousRedstoneState
      stores the latest redstone state
  • Constructor Details

    • TileEntityNote

      public TileEntityNote()
  • Method Details

    • writeToNBT

      public void writeToNBT(NBTTagCompound par1NBTTagCompound)
      Writes a tile entity to NBT.
      Overrides:
      writeToNBT in class TileEntity
    • readFromNBT

      public void readFromNBT(NBTTagCompound par1NBTTagCompound)
      Reads a tile entity from NBT.
      Overrides:
      readFromNBT in class TileEntity
    • changePitch

      public void changePitch()
      change pitch by -> (currentPitch + 1) % 25
    • triggerNote

      public void triggerNote(World par1World, int par2, int par3, int par4)
      plays the stored note