-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started implementing the new variant system to crustaceans
- Loading branch information
1 parent
b7ca172
commit eb1a638
Showing
23 changed files
with
198 additions
and
80 deletions.
There are no files selected for viewing
12 changes: 1 addition & 11 deletions
12
...nt/kotlin/dev/hybridlabs/aquatic/client/model/entity/crustacean/FiddlerCrabEntityModel.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,15 +1,5 @@ | ||
package dev.hybridlabs.aquatic.client.model.entity.crustacean | ||
|
||
import dev.hybridlabs.aquatic.entity.crustacean.HybridAquaticCrustaceanEntity | ||
import net.minecraft.util.Identifier | ||
|
||
class FiddlerCrabEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("fiddler_crab") { | ||
override fun getTextureResource(animatable: HybridAquaticCrustaceanEntity?): Identifier { | ||
if (animatable != null) return getVariantTexture(allVariants[animatable.variant]) | ||
return super.getTextureResource(animatable) | ||
} | ||
|
||
companion object { | ||
val allVariants: Array<String> = arrayOf("blue", "red", "purple", "palestine") | ||
} | ||
} | ||
class FiddlerCrabEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("fiddler_crab") |
12 changes: 1 addition & 11 deletions
12
...ient/kotlin/dev/hybridlabs/aquatic/client/model/entity/crustacean/GhostCrabEntityModel.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,15 +1,5 @@ | ||
package dev.hybridlabs.aquatic.client.model.entity.crustacean | ||
|
||
import dev.hybridlabs.aquatic.entity.crustacean.HybridAquaticCrustaceanEntity | ||
import net.minecraft.util.Identifier | ||
|
||
class GhostCrabEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("ghost_crab") { | ||
override fun getTextureResource(animatable: HybridAquaticCrustaceanEntity?): Identifier { | ||
if (animatable != null) return getVariantTexture(allVariants[animatable.variant]) | ||
return super.getTextureResource(animatable) | ||
} | ||
|
||
companion object { | ||
val allVariants: Array<String> = arrayOf("white", "yellow", "red", "brown", "palestine") | ||
} | ||
} | ||
class GhostCrabEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("ghost_crab") |
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
12 changes: 1 addition & 11 deletions
12
...client/kotlin/dev/hybridlabs/aquatic/client/model/entity/crustacean/LobsterEntityModel.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,15 +1,5 @@ | ||
package dev.hybridlabs.aquatic.client.model.entity.crustacean | ||
|
||
import dev.hybridlabs.aquatic.entity.crustacean.HybridAquaticCrustaceanEntity | ||
import net.minecraft.util.Identifier | ||
|
||
class LobsterEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("lobster") { | ||
override fun getTextureResource(animatable: HybridAquaticCrustaceanEntity?): Identifier { | ||
if (animatable != null) return getVariantTexture(allVariants[animatable.variant]) | ||
return super.getTextureResource(animatable) | ||
} | ||
|
||
companion object { | ||
val allVariants: Array<String> = arrayOf("ornate_spiny", "california_spiny", "american") | ||
} | ||
} | ||
class LobsterEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("lobster") |
12 changes: 1 addition & 11 deletions
12
src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/crustacean/ShrimpEntityModel.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,15 +1,5 @@ | ||
package dev.hybridlabs.aquatic.client.model.entity.crustacean | ||
|
||
import dev.hybridlabs.aquatic.entity.crustacean.HybridAquaticCrustaceanEntity | ||
import net.minecraft.util.Identifier | ||
|
||
class ShrimpEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("shrimp") { | ||
override fun getTextureResource(animatable: HybridAquaticCrustaceanEntity?): Identifier { | ||
if (animatable != null) return getVariantTexture(allVariants[animatable.variant]) | ||
return super.getTextureResource(animatable) | ||
} | ||
|
||
companion object { | ||
val allVariants: Array<String> = arrayOf("blue", "blue_white", "black", "black_white", "red", "red_white", "green", "green_white", "brown", "brown_white", "lime", "lime_white", "yellow", "yellow_white", "pink", "pink_white", "white", "orange", "orange_white", "palestine") | ||
} | ||
} | ||
class ShrimpEntityModel : HybridAquaticCrustaceanEntityModel<HybridAquaticCrustaceanEntity>("shrimp") |
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
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
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.