public class BlockTrackEntryThaumcraft extends java.lang.Object implements IBlockTrackEntry
| Constructor and Description |
|---|
BlockTrackEntryThaumcraft() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.tileentity.TileEntity te,
net.minecraft.util.Direction face,
java.util.List<net.minecraft.util.text.ITextComponent> infoList)
This method is called each client tick to retrieve the block's additional
information.
|
net.minecraft.util.ResourceLocation |
getEntryID()
Return a unique identifier for this block track entry.
|
java.util.List<net.minecraft.util.math.BlockPos> |
getServerUpdatePositions(net.minecraft.tileentity.TileEntity te)
This method controls whether the block should be updated by the server (at 5
second intervals).
|
boolean |
shouldTrackWithThisEntry(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.tileentity.TileEntity te)
This method should return true if the coordinate checked is one that
should be tracked.
|
int |
spamThreshold()
The return of this method defines at how many tracked blocks of this type
the HUD should stop displaying text at the tracked blocks of this type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasCapabilityOnAnyFacepublic boolean shouldTrackWithThisEntry(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.tileentity.TileEntity te)
IBlockTrackEntryshouldTrackWithThisEntry in interface IBlockTrackEntryworld - The world that is examined.pos - The position of the block examined.state - The block of the current coordinate. This will save you a
call to World.getBlockState().te - The TileEntity at this x,y,z (may be null)public java.util.List<net.minecraft.util.math.BlockPos> getServerUpdatePositions(net.minecraft.tileentity.TileEntity te)
IBlockTrackEntrygetServerUpdatePositions in interface IBlockTrackEntryte - the tile entity at the currently checked location, may be nullpublic int spamThreshold()
IBlockTrackEntryspamThreshold in interface IBlockTrackEntrypublic void addInformation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.tileentity.TileEntity te,
net.minecraft.util.Direction face,
java.util.List<net.minecraft.util.text.ITextComponent> infoList)
IBlockTrackEntryItem.appendHoverText(ItemStack, World, List, ITooltipFlag).
This method is only called if IBlockTrackEntry.shouldTrackWithThisEntry(IBlockReader, BlockPos, BlockState, TileEntity)
returned true, and the player is curently focused on the block.addInformation in interface IBlockTrackEntryworld - The world the block is in.pos - The position the block is at.te - The TileEntity at the x,y,z (may be null)face - The blockface the player is looking at (null if player is not looking directly at the block)infoList - The list of lines to display.public net.minecraft.util.ResourceLocation getEntryID()
IBlockTrackEntryIArmorUpgradeHandler.getStringKey(ResourceLocation)getEntryID in interface IBlockTrackEntry