public interface IBlockIconProvider extends IIconProvider
icons when rendering Blocks.| Modifier and Type | Interface and Description |
|---|---|
static interface |
IBlockIconProvider.ISidesIconProvider
|
static interface |
IBlockIconProvider.IStatesIconProvider
|
| Modifier and Type | Method and Description |
|---|---|
default Icon |
getIcon()
Gets the
Icon to use. |
default Icon |
getIcon(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing side)
Gets the
Icon to use. |
Icon |
getIcon(net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing side)
Gets the
Icon to use for the specified IBlockState. |
default Icon |
getIcon(net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side)
Gets the
Icon to use for the item. |
default Icon |
getParticleIcon(net.minecraft.block.state.IBlockState state)
Gets the particle
Icon to use for the IBlockState. |
create, create, create, create, isClientComponentgetComponent, getDependenciesIcon getIcon(net.minecraft.block.state.IBlockState state, net.minecraft.util.EnumFacing side)
Icon to use for the specified IBlockState.state - the statedefault Icon getIcon()
IIconProviderIcon to use.getIcon in interface IIconProviderdefault Icon getIcon(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.util.EnumFacing side)
Icon to use.world - the worldpos - the posstate - the stateside - the sidedefault Icon getIcon(net.minecraft.item.ItemStack itemStack, net.minecraft.util.EnumFacing side)
Icon to use for the item. (Only used if the item associated with the block isn't already a
IItemIconProvider).itemStack - the item stackside - the side