Interface CustomBlockModel
- All Known Implementing Classes:
CustomChorusModel
,CustomNoteblockModel
,CustomTripwireModel
public interface CustomBlockModel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.bukkit.block.Block b) Place custom blockvoid
apply
(org.bukkit.block.data.BlockData b) Set right block data to block (used with applyOnPhysics=true; Needed for tripwire proper work)boolean
boolean
isSimilar
(org.bukkit.block.Block b) Check if block has this model
-
Method Details
-
apply
void apply(org.bukkit.block.Block b) Place custom block- Parameters:
b
- block to place
-
apply
void apply(org.bukkit.block.data.BlockData b) Set right block data to block (used with applyOnPhysics=true; Needed for tripwire proper work)- Parameters:
b
- - block data to change
-
isSimilar
boolean isSimilar(org.bukkit.block.Block b) Check if block has this model- Parameters:
b
- - block to check- Returns:
- is block has this model
-
applyOnPhysics
boolean applyOnPhysics()- Returns:
- should listener apply(BlockData) on BlockPhysicsEvent or not
-