generated from TeamGensouSpark/LunarCapitalFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
89 additions
and
7 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
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
50 changes: 50 additions & 0 deletions
50
src/main/java/io/github/teamgensouspark/kekkai/danmaku/DanmakuFormBase.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,50 @@ | ||
package io.github.teamgensouspark.kekkai.danmaku; | ||
|
||
import net.katsstuff.teamnightclipse.danmakucore.client.helper.DanCoreRenderHelper; | ||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.DanmakuState; | ||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.form.IRenderForm; | ||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.form.RenderingProperty; | ||
import net.katsstuff.teamnightclipse.danmakucore.impl.form.FormGeneric; | ||
import net.katsstuff.teamnightclipse.mirror.client.shaders.MirrorShaderProgram; | ||
import net.katsstuff.teamnightclipse.mirror.data.Quat; | ||
import net.minecraft.client.renderer.entity.RenderManager; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraftforge.fml.relauncher.Side; | ||
import net.minecraftforge.fml.relauncher.SideOnly; | ||
import scala.collection.immutable.Map; | ||
import scala.collection.immutable.Map$; | ||
|
||
public class DanmakuFormBase extends FormGeneric { | ||
public DanmakuFormBase(String name){ | ||
super(name); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public IRenderForm createRenderer() { | ||
return new IRenderForm() { | ||
|
||
@Override | ||
public void renderLegacy(DanmakuState danmaku, double x, double y, double z, Quat orientation, | ||
float partialTicks, RenderManager manager) { | ||
} | ||
|
||
@Override | ||
public void renderShaders(DanmakuState danmaku, double x, double y, double z, Quat orientation, | ||
float partialTicks, RenderManager manager, MirrorShaderProgram shaderProgram) { | ||
} | ||
|
||
@Override | ||
public Map<String, RenderingProperty> defaultAttributeValues() { | ||
return Map$.MODULE$.empty(); | ||
} | ||
|
||
@Override | ||
public ResourceLocation shader(DanmakuState state) { | ||
return DanCoreRenderHelper.baseDanmakuShaderLoc(); | ||
} | ||
|
||
}; | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/io/github/teamgensouspark/kekkai/danmaku/DanmakuSubEntityBase.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,14 @@ | ||
package io.github.teamgensouspark.kekkai.danmaku; | ||
|
||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.DanmakuState; | ||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.DanmakuUpdate; | ||
import net.katsstuff.teamnightclipse.danmakucore.impl.subentity.SubEntityDefault; | ||
|
||
public class DanmakuSubEntityBase extends SubEntityDefault{ | ||
@Override | ||
public DanmakuUpdate subEntityTick(DanmakuState state) { | ||
return state.update(); | ||
} | ||
|
||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/io/github/teamgensouspark/kekkai/danmaku/DanmakuSubEntityTypeBase.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,13 @@ | ||
package io.github.teamgensouspark.kekkai.danmaku; | ||
|
||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.subentity.SubEntity; | ||
import net.katsstuff.teamnightclipse.danmakucore.danmaku.subentity.SubEntityType; | ||
|
||
public class DanmakuSubEntityTypeBase extends SubEntityType{ | ||
|
||
@Override | ||
public SubEntity instantiate() { | ||
return new DanmakuSubEntityBase(); | ||
} | ||
|
||
} |
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