forked from BeYkeRYkt/LightAPI
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.4.0] Added LightType support to enable both SKY and BLOCK light types
- Now all methods (createLight,deleteLight,collectChunks,updateChunk) support parameter LightType - Fixed minor bugs
- Loading branch information
Showing
20 changed files
with
500 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2015 Vladimir Mikhailov <[email protected]> | ||
* Copyright (c) 2016 Vladimir Mikhailov <[email protected]> | ||
* Copyright (c) 2016-2017 The ImplexDevOne Project | ||
* Copyright (c) 2019 Qveshn | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -22,27 +23,9 @@ | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
package ru.beykerykt.lightapi.server.nms.craftbukkit; | ||
package ru.beykerykt.lightapi; | ||
|
||
public enum LightType { | ||
|
||
/** | ||
* Light emanates from the block (torch, glowstone, etc.) | ||
*/ | ||
BLOCK(0), | ||
|
||
/** | ||
* N/A | ||
*/ | ||
SKY(1); | ||
|
||
private final int id; | ||
|
||
private LightType(int id) { | ||
this.id = id; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
SKY, | ||
BLOCK | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.