public class InfoAccess
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.block.Block |
block
The block being looked at.
|
net.minecraft.entity.Entity |
entity
The entity being looked at.
|
net.minecraft.entity.player.EntityPlayer |
player
Access to the client side player.
|
net.minecraft.util.math.BlockPos |
pos
The position of the block being looked at.
|
net.minecraft.util.math.RayTraceResult |
result
Access to the raytrace.
|
net.minecraft.util.EnumFacing |
side
The side of the block being looked at.
|
net.minecraft.item.ItemStack |
stack
An ItemStack version of the block being looked at.
|
net.minecraft.block.state.IBlockState |
state
The state of the block being looked at.
|
net.minecraft.nbt.NBTTagCompound |
tag
Access to the synced tag compound.
|
net.minecraft.world.World |
world
Access to the client side world.
|
| Constructor and Description |
|---|
InfoAccess(net.minecraft.util.math.RayTraceResult result,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side,
net.minecraft.nbt.NBTTagCompound tag)
Contructs a new InfoAccess object for a block.
|
InfoAccess(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity,
net.minecraft.nbt.NBTTagCompound tag)
Constructs a new InfoAccess object for an entity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidBlock()
Checks if a block has all the valid variables to be shown.
|
public net.minecraft.world.World world
public net.minecraft.nbt.NBTTagCompound tag
public net.minecraft.entity.player.EntityPlayer player
public net.minecraft.entity.Entity entity
public net.minecraft.util.math.RayTraceResult result
public net.minecraft.block.Block block
public net.minecraft.block.state.IBlockState state
public net.minecraft.item.ItemStack stack
public net.minecraft.util.EnumFacing side
public net.minecraft.util.math.BlockPos pos
public InfoAccess(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.entity.Entity entity,
net.minecraft.nbt.NBTTagCompound tag)
world - The client side world.player - The client side player.entity - The entity being looked at.public InfoAccess(net.minecraft.util.math.RayTraceResult result,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side,
net.minecraft.nbt.NBTTagCompound tag)
world - The client side world.player - The client side player.state - The state of the block.pos - The position of the block.side - The side being looked at.