-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
58e7e2c
commit 4ceabde
Showing
17 changed files
with
97 additions
and
181 deletions.
There are no files selected for viewing
26 changes: 24 additions & 2 deletions
26
...ent/kotlin/dev/hybridlabs/aquatic/client/model/entity/cephalopod/CuttlefishEntityModel.kt
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,5 +1,27 @@ | ||
package dev.hybridlabs.aquatic.client.model.entity.cephalopod | ||
|
||
import dev.hybridlabs.aquatic.entity.cephalopod.HybridAquaticCephalopodEntity | ||
import dev.hybridlabs.aquatic.HybridAquatic | ||
import dev.hybridlabs.aquatic.entity.cephalopod.CuttlefishEntity | ||
import net.minecraft.util.Identifier | ||
|
||
class CuttlefishEntityModel : HybridAquaticCephalopodEntityModel<HybridAquaticCephalopodEntity>("cuttlefish") | ||
class CuttlefishEntityModel : HybridAquaticCephalopodEntityModel<CuttlefishEntity>("cuttlefish") { | ||
override fun getTextureResource(animatable: CuttlefishEntity?): Identifier { | ||
val texturePath = when (animatable?.randomValue) { | ||
0 -> "textures/entity/cephalopod/cuttlefish/cuttlefish.png" | ||
1 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_zebra.png" | ||
2 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_disruptive.png" | ||
3 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_white.png" | ||
4 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_black.png" | ||
5 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_black_white.png" | ||
6 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_white_black.png" | ||
7 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_red_white.png" | ||
8 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_white_red.png" | ||
9 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_creeper_black.png" | ||
10 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_creeper_white.png" | ||
11 -> "textures/entity/cephalopod/cuttlefish/cuttlefish_creeper_red.png" | ||
else -> "textures/entity/cephalopod/cuttlefish/cuttlefish.png" | ||
} | ||
|
||
return Identifier(HybridAquatic.MOD_ID, texturePath) | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...otlin/dev/hybridlabs/aquatic/client/render/entity/cephalopods/CuttlefishEntityRenderer.kt
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,8 @@ | ||
package dev.hybridlabs.aquatic.client.render.entity.cephalopods | ||
|
||
import dev.hybridlabs.aquatic.client.model.entity.cephalopod.CuttlefishEntityModel | ||
import dev.hybridlabs.aquatic.entity.cephalopod.HybridAquaticCephalopodEntity | ||
import dev.hybridlabs.aquatic.entity.cephalopod.CuttlefishEntity | ||
import net.minecraft.client.render.entity.EntityRendererFactory.Context | ||
|
||
class CuttlefishEntityRenderer(context: Context) : HybridAquaticCephalopodEntityRenderer<HybridAquaticCephalopodEntity>(context, CuttlefishEntityModel(), true, false) | ||
class CuttlefishEntityRenderer(context: Context) : HybridAquaticCephalopodEntityRenderer<CuttlefishEntity>(context, CuttlefishEntityModel(), true, false) | ||
|
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
Binary file modified
BIN
-181 Bytes
(84%)
...rces/assets/hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+823 Bytes
...ssets/hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.09 KB
...hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_black_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+913 Bytes
...brid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_creeper_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.02 KB
...hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_creeper_red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+920 Bytes
...brid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_creeper_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+923 Bytes
.../hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_disruptive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.06 KB
...s/hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_red_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+859 Bytes
...ssets/hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.11 KB
...hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_white_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.09 KB
...s/hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_white_red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.01 KB
...ssets/hybrid-aquatic/textures/entity/cephalopod/cuttlefish/cuttlefish_zebra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.