public class TileEntityNote extends TileEntity
Modifier and Type | Field and Description |
---|---|
byte |
note
Note to play
|
boolean |
previousRedstoneState
stores the latest redstone state
|
blockMetadata, blockType, INFINITE_EXTENT_AABB, worldObj, xCoord, yCoord, zCoord
Constructor and Description |
---|
TileEntityNote() |
Modifier and Type | Method and Description |
---|---|
void |
changePitch()
change pitch by -> (currentPitch + 1) % 25
|
void |
readFromNBT(NBTTagCompound par1NBTTagCompound)
Reads a tile entity from NBT.
|
void |
triggerNote(World par1World,
int par2,
int par3,
int par4)
plays the stored note
|
void |
writeToNBT(NBTTagCompound par1NBTTagCompound)
Writes a tile entity to NBT.
|
addMapping, canUpdate, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, onChunkUnload, onDataPacket, onInventoryChanged, receiveClientEvent, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, updateEntity, validate
public byte note
public boolean previousRedstoneState
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
writeToNBT
in class TileEntity
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
readFromNBT
in class TileEntity
public void changePitch()
public void triggerNote(World par1World, int par2, int par3, int par4)