public class TileEntityNote extends TileEntity
Modifier and Type | Field and Description |
---|---|
byte |
note
Note to play
|
boolean |
previousRedstoneState
stores the latest redstone state
|
blockType, pos, tileEntityInvalid, worldObj
Constructor and Description |
---|
TileEntityNote() |
Modifier and Type | Method and Description |
---|---|
void |
changePitch()
change pitch by -> (currentPitch + 1) % 25
|
void |
readFromNBT(NBTTagCompound compound) |
void |
triggerNote(World worldIn,
BlockPos p_175108_2_) |
void |
writeToNBT(NBTTagCompound compound) |
addInfoToCrashReport, createAndLoadEntity, func_183000_F, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, receiveClientEvent, setPos, setWorldObj, updateContainingBlockInfo, validate
public byte note
public boolean previousRedstoneState
public void writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntity
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntity
public void changePitch()