public class BlockEventPacket extends BedrockPacket
eventType: (Instrument)data: 0-15
- 0 (Piano)
- 1 (Base Drum)
- 2 (Sticks)
- 3 (Drum)
- 4 (Bass)
eventType: 1 (Chest open/closed)
data: 0 or 1
eventType: 1 (Cool down)
data: n/a
| Constructor and Description |
|---|
BlockEventPacket() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
com.flowpowered.math.vector.Vector3i |
getBlockPosition()
Position to execute block event.
|
int |
getEventData()
Data used by event (if applicable)
|
int |
getEventType()
Block event type to execute
|
boolean |
handle(BedrockPacketHandler handler) |
int |
hashCode() |
void |
setBlockPosition(com.flowpowered.math.vector.Vector3i blockPosition)
Position to execute block event.
|
void |
setEventData(int eventData)
Data used by event (if applicable)
|
void |
setEventType(int eventType)
Block event type to execute
|
String |
toString() |
getHeader, setHeaderpublic final boolean handle(BedrockPacketHandler handler)
handle in class BedrockPacketpublic com.flowpowered.math.vector.Vector3i getBlockPosition()
public int getEventType()
public int getEventData()
public void setBlockPosition(com.flowpowered.math.vector.Vector3i blockPosition)
blockPosition - block event positionpublic void setEventType(int eventType)
eventType - block event typepublic void setEventData(int eventData)
eventData - data for eventprotected boolean canEqual(Object other)
Copyright © 2018–2019 NukkitX. All rights reserved.