public abstract class PressurePlate extends Object
WARNING: never create PressurePlate objects. Always extend this class.
Modifier and Type | Field and Description |
---|---|
protected org.bukkit.Location |
location |
protected org.bukkit.Material |
material |
protected IParkour |
parkour |
protected List<String> |
rewards |
Constructor and Description |
---|
PressurePlate(org.bukkit.Location location,
List<String> rewards) |
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
getLocation()
The location the pressure plate it located.
|
org.bukkit.Material |
getMaterial()
Get the type of material the pressure plate has.
|
IParkour |
getParkour()
Get the parkour the pressure plate belongs to.
|
List<String> |
getRewards()
Retrieves the commands associated with the pressure plate.
|
abstract int |
getType()
The type of pressure plate.
|
void |
placeMaterial()
Places the pressure plate material on the block the pressure plate is located at.
|
void |
removeMaterial()
Remove the material by setting it to air.
|
void |
setParkour(IParkour parkour)
Set the parkour the pressure plate belongs to.
|
void |
setRewards(List<String> rewards)
Sets the commands associated with the pressure plate.
|
protected final org.bukkit.Location location
protected IParkour parkour
protected org.bukkit.Material material
public void setParkour(IParkour parkour)
WARNING: It is not recommended that you use this once the parkour has been setup.
parkour
- the parkour it belongs to.public org.bukkit.Location getLocation()
public abstract int getType()
Default ID's: 0 - Start Point 1 - End Point 2 - Restart Point 3 - Checkpoint 4 - Border Point 5 - Exit Point
public org.bukkit.Material getMaterial()
public void placeMaterial()
public void removeMaterial()
public IParkour getParkour()
public List<String> getRewards()
Copyright © 2025. All rights reserved.