public class TileEntityNote extends TileEntity
Modifier and Type | Field and Description |
---|---|
byte |
note
Note to play
|
boolean |
previousRedstoneState
stores the latest redstone state
|
blockType, INFINITE_EXTENT_AABB, 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, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getCapability, getDescriptionPacket, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, onLoad, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, 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()