Package net.minecraft.src
Class TileEntityNote
java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityNote
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyteNote to playbooleanstores the latest redstone stateFields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchange pitch by -> (currentPitch + 1) % 25voidreadFromNBT(NBTTagCompound par1NBTTagCompound) Reads a tile entity from NBT.voidtriggerNote(World par1World, int par2, int par3, int par4) plays the stored notevoidwriteToNBT(NBTTagCompound par1NBTTagCompound) Writes a tile entity to NBT.Methods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, receiveClientEvent, setWorldObj, updateContainingBlockInfo, updateEntity, validate
-
Field Details
-
note
public byte noteNote to play -
previousRedstoneState
public boolean previousRedstoneStatestores the latest redstone state
-
-
Constructor Details
-
TileEntityNote
public TileEntityNote()
-
-
Method Details
-
writeToNBT
Writes a tile entity to NBT.- Overrides:
writeToNBTin classTileEntity
-
readFromNBT
Reads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntity
-
changePitch
public void changePitch()change pitch by -> (currentPitch + 1) % 25 -
triggerNote
plays the stored note
-