public class ItemBlock extends Item
Item.RightClickEvent, Item.TooltipEvent, Item.UseEventComponentProvider.ComponentAdded, ComponentProvider.ComponentRemoved| Modifier and Type | Field and Description |
|---|---|
BlockFactory |
blockFactory |
components, events| Constructor and Description |
|---|
ItemBlock(BlockFactory blockFactory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalizedName()
Gets the localized name of this object.
|
java.lang.String |
getUnlocalizedName()
Gets the unlocalized name of this object.
|
protected boolean |
onPostPlace(Entity entity,
World world,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D placePos,
Direction side,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D hit) |
protected boolean |
onPrePlace(Entity entity,
World world,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D placePos,
Direction side,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D hit) |
protected void |
onUse(Item.UseEvent evt) |
addCount, clone, colorMultiplier, count, equals, getFactory, getID, getMaxCount, hashCode, sameItemType, setCount, withAmountcomponents, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitsameTypegetReplacementspublic final BlockFactory blockFactory
public ItemBlock(BlockFactory blockFactory)
public java.lang.String getUnlocalizedName()
TranslatablegetUnlocalizedName in interface TranslatablegetUnlocalizedName in class Itempublic java.lang.String getLocalizedName()
TranslatablegetLocalizedName in interface TranslatablegetLocalizedName in class Itemprotected void onUse(Item.UseEvent evt)
protected boolean onPrePlace(Entity entity, World world, org.apache.commons.math3.geometry.euclidean.threed.Vector3D placePos, Direction side, org.apache.commons.math3.geometry.euclidean.threed.Vector3D hit)