| Modifier and Type | Field and Description |
|---|---|
static AtomicLong |
mapIdAllocator |
| Constructor and Description |
|---|
ItemMap(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated() |
protected BufferedImage |
getBufferedImage() |
byte[] |
getColors() |
byte |
getDimension() |
short |
getHeight() |
int[] |
getImage() |
long |
getMapId() |
int |
getMaxStackSize() |
long |
getParentMapId() |
int |
getScale() |
short |
getWidth() |
int |
getXCenter() |
int |
getZCenter() |
boolean |
isFullyExplored() |
boolean |
isMapLocked() |
boolean |
isPreviewIncomplete() |
boolean |
isUnlimitedTracking() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
sendImage(Player p) |
void |
setColors(byte[] colors) |
void |
setDimension(int dimension) |
void |
setFullyExplored(boolean fullyExplored) |
void |
setHeight(int height) |
void |
setImage(BufferedImage img) |
void |
setImage(File file) |
void |
setImage(int[] image) |
void |
setMapLocked(boolean mapLocked) |
void |
setParentMapId(long parentMapId) |
void |
setPreviewIncomplete(boolean previewIncomplete) |
void |
setScale(int scale) |
void |
setUnlimitedTracking(boolean unlimitedTracking) |
void |
setWidth(int width) |
void |
setXCenter(int xCenter) |
void |
setZCenter(int zCenter) |
addCreativeItem, addEnchantment, addTag, canBePlaced, canDestroy, canPlaceOn, clearCreativeItems, clearCustomName, clone, createTag, decrementCount, decrementCount, deepEquals, deepEquals, deepEquals, equals, equals, equals, equalsExact, fromJson, fromNetwork, fromString, fromStringMultiple, get, get, get, get, get, get, get, get, get, get, getArmorPoints, getAttackDamage, getBlock, getCount, getCreativeItem, getCreativeItemIndex, getCreativeItems, getCustomName, getDestroySpeed, getEnchantAbility, getEnchantment, getEnchantment, getEnchantments, getFuelTime, getId, getLore, getMaxDurability, getMeta, getName, getNetworkId, getTag, getTier, getToughness, hasCustomName, hasEnchantments, hasMeta, hasNbtMap, incrementCount, incrementCount, initCreativeItems, isArmor, isAxe, isBoots, isChestplate, isCreativeItem, isHelmet, isHoe, isLeggings, isNull, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onActivate, onClickAir, onMetaChange, onRelease, onUse, removeCreativeItem, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toString, useOn, useOnpublic static final AtomicLong mapIdAllocator
public ItemMap(Identifier id)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class Itempublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class Itempublic void setImage(File file) throws IOException
IOExceptionprotected BufferedImage getBufferedImage()
public long getMapId()
public long getParentMapId()
public void setParentMapId(long parentMapId)
public byte getDimension()
public void setDimension(int dimension)
public int getXCenter()
public void setXCenter(int xCenter)
public int getZCenter()
public void setZCenter(int zCenter)
public int getScale()
public void setScale(int scale)
public boolean isUnlimitedTracking()
public void setUnlimitedTracking(boolean unlimitedTracking)
public boolean isPreviewIncomplete()
public void setPreviewIncomplete(boolean previewIncomplete)
public short getWidth()
public void setWidth(int width)
public short getHeight()
public void setHeight(int height)
public int[] getImage()
public void setImage(BufferedImage img)
public void setImage(int[] image)
public byte[] getColors()
public void setColors(byte[] colors)
public boolean isFullyExplored()
public void setFullyExplored(boolean fullyExplored)
public boolean isMapLocked()
public void setMapLocked(boolean mapLocked)
public void sendImage(Player p)
public boolean canBeActivated()
canBeActivated in class Itempublic int getMaxStackSize()
getMaxStackSize in class ItemCopyright © 2020. All rights reserved.