-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Entity JSON light loader, refactor CachedBlockLight
- Entity JSON light is a simple light without predicate - CachedBlockLight -> FloodFillBlockLight, make all values consistent - `blaze` and `glow_squid` light in canvas/default resource pack - EntityLightProvider API (unused for now)
- Loading branch information
1 parent
cde4831
commit f5f78da
Showing
8 changed files
with
252 additions
and
98 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
31 changes: 31 additions & 0 deletions
31
src/main/java/grondag/canvas/light/api/EntityLightProvider.java
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* This file is part of Canvas Renderer and is licensed to the project under | ||
* terms that are compatible with the GNU Lesser General Public License. | ||
* See the NOTICE file distributed with this work for additional information | ||
* regarding copyright ownership and licensing. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package grondag.canvas.light.api; | ||
|
||
/** | ||
* Implement this interface to treat a particular entity as a dynamic light source. | ||
*/ | ||
public interface EntityLightProvider { | ||
/** | ||
* The block light value of this entity in the current frame. | ||
*/ | ||
BlockLight getBlockLight(); | ||
} |
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.