public class ConnectedIconsProvider extends java.lang.Object implements IBlockIconProvider
IBlockIconProvider.ISidesIconProvider, IBlockIconProvider.IStatesIconProvider| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.EnumFacing[][] |
sides |
| Constructor and Description |
|---|
ConnectedIconsProvider(IconProviderBuilder builder)
Instantiates a new
ConnectedIconsProvider using the IconProviderBuilder. |
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon()
Gets the
Icon with no connection on any side. |
Icon |
getIcon(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing facing)
Gets the corresponding
Icon based on the connections available. |
Icon |
getIcon(net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing side)
Gets the
Icon to use for the specified IBlockState. |
protected void |
initializeIcons()
Initializes the connected icons.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIcon, getParticleIconcreate, create, create, create, isClientComponentgetComponent, getDependenciespublic ConnectedIconsProvider(IconProviderBuilder builder)
ConnectedIconsProvider using the IconProviderBuilder.builder - the builderprotected void initializeIcons()
icons array.public Icon getIcon()
Icon with no connection on any side.getIcon in interface IBlockIconProvidergetIcon in interface IIconProviderpublic Icon getIcon(net.minecraft.block.state.IBlockState state, net.minecraft.util.EnumFacing side)
IBlockIconProviderIcon to use for the specified IBlockState.getIcon in interface IBlockIconProviderstate - the statepublic Icon getIcon(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.util.EnumFacing facing)
Icon based on the connections available.getIcon in interface IBlockIconProviderworld - the worldpos - the posstate - the statefacing - the facing