public class BlockRedstoneEvent extends BlockEvent
Event.Resultblock| Constructor and Description | 
|---|
BlockRedstoneEvent(@NotNull Block block,
                  int oldCurrent,
                  int newCurrent)  | 
| Modifier and Type | Method and Description | 
|---|---|
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
int | 
getNewCurrent()
Gets the new current of this block 
 | 
int | 
getOldCurrent()
Gets the old current of this block 
 | 
void | 
setNewCurrent(int newCurrent)
Sets the new current of this block 
 | 
getBlockgetEventName, isAsynchronouspublic BlockRedstoneEvent(@NotNull
                          @NotNull Block block,
                          int oldCurrent,
                          int newCurrent)
public int getOldCurrent()
public int getNewCurrent()
public void setNewCurrent(int newCurrent)
newCurrent - The new current to set@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.