Package dev.cerus.maps.api
Class Marker
java.lang.Object
dev.cerus.maps.api.Marker
Represents a map marker
Changes to instances of this maker will call back to the parent clientside map (if one is present)
-
Constructor Summary
ConstructorDescriptionMarker(int x, int y, byte direction, byte type, boolean visible)
Marker(int x, int y, byte direction, byte type, boolean visible, net.md_5.bungee.api.chat.BaseComponent... caption)
Marker(int x, int y, byte direction, org.bukkit.map.MapCursor.Type type, boolean visible)
Marker(int x, int y, byte direction, org.bukkit.map.MapCursor.Type type, boolean visible, net.md_5.bungee.api.chat.BaseComponent... caption)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
net.md_5.bungee.api.chat.BaseComponent[]
byte
byte
byte
byte
getType()
int
getX()
int
getY()
boolean
int
hashCode()
boolean
void
setCaption(net.md_5.bungee.api.chat.BaseComponent[] caption)
void
setDirection(byte direction)
void
setRawType(byte type)
void
setType(byte type)
void
setType(org.bukkit.map.MapCursor.Type type)
void
setVisible(boolean visible)
void
setX(int x)
void
setY(int y)
-
Constructor Details
-
Marker
public Marker(int x, int y, byte direction, byte type, boolean visible) -
Marker
public Marker(int x, int y, byte direction, org.bukkit.map.MapCursor.Type type, boolean visible) -
Marker
public Marker(int x, int y, byte direction, byte type, boolean visible, net.md_5.bungee.api.chat.BaseComponent... caption) -
Marker
public Marker(int x, int y, byte direction, org.bukkit.map.MapCursor.Type type, boolean visible, net.md_5.bungee.api.chat.BaseComponent... caption)
-
-
Method Details
-
setRawType
public void setRawType(byte type) -
getX
public int getX() -
setX
public void setX(int x) -
getCompressedX
public byte getCompressedX() -
getY
public int getY() -
setY
public void setY(int y) -
getCompressedY
public byte getCompressedY() -
getDirection
public byte getDirection() -
setDirection
public void setDirection(byte direction) -
getType
public byte getType() -
setType
public void setType(org.bukkit.map.MapCursor.Type type) -
setType
public void setType(byte type) -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) -
hasCaption
public boolean hasCaption() -
getCaption
public net.md_5.bungee.api.chat.BaseComponent[] getCaption() -
setCaption
public void setCaption(net.md_5.bungee.api.chat.BaseComponent[] caption) -
getCaptionString
-
equals
-
hashCode
public int hashCode()
-