public class BeaconEntity extends BlockEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
BeaconEntity.BeaconEffectPriority |
block| Constructor and Description |
|---|
BeaconEntity(GlowBlock block) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.potion.PotionEffect |
getEffect(BeaconEntity.BeaconEffectPriority priority) |
int |
getLevels() |
int |
getPrimaryEffectId() |
int |
getSecondaryEffectId() |
GlowBeacon |
getState()
Create a new BlockState which will correspond to this block entity.
|
void |
loadNbt(CompoundTag tag)
Read this BlockEntity's data from the saved tag.
|
void |
onPulse() |
void |
saveNbt(CompoundTag tag)
Save this BlockEntity's data to NBT.
|
void |
setLevels(int levels) |
void |
setPrimaryEffectId(int primaryEffectId) |
void |
setSecondaryEffectId(int secondaryEffectId) |
void |
update(GlowPlayer player)
Update this BlockEntity's visible state to the given player.
|
destroy, getBlock, pulse, setSaveId, updateInRangepublic BeaconEntity(GlowBlock block)
public GlowBeacon getState()
BlockEntitygetState in class BlockEntitypublic void update(GlowPlayer player)
BlockEntityupdate in class BlockEntityplayer - The player to update.public void onPulse()
public org.bukkit.potion.PotionEffect getEffect(BeaconEntity.BeaconEffectPriority priority)
public void loadNbt(CompoundTag tag)
BlockEntityloadNbt in class BlockEntitytag - The tag to load from.public void saveNbt(CompoundTag tag)
BlockEntitysaveNbt in class BlockEntitytag - The tag to save to.public int getLevels()
public void setLevels(int levels)
public int getPrimaryEffectId()
public void setPrimaryEffectId(int primaryEffectId)
public int getSecondaryEffectId()
public void setSecondaryEffectId(int secondaryEffectId)
Copyright © 2021. All rights reserved.