Skip to content

Commit

Permalink
complete magnorite skin generate
Browse files Browse the repository at this point in the history
  • Loading branch information
IAFEnvoy committed Jan 6, 2025
1 parent 8a4d20f commit 31f7b4b
Show file tree
Hide file tree
Showing 62 changed files with 263 additions and 187 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.iafenvoy.sow.entity.ardoni;

import com.iafenvoy.neptune.object.entity.MonsterEntityBase;
import com.iafenvoy.neptune.render.EntityWithMarkerTextureProvider;
import com.iafenvoy.neptune.util.Color4i;
import com.iafenvoy.sow.data.ArdoniType;
import com.iafenvoy.sow.item.block.entity.ArdoniGraveBlockEntity;
Expand All @@ -15,12 +16,9 @@
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;
import net.minecraft.world.World;

import java.util.Optional;

public abstract class AbstractArdoniEntity extends MonsterEntityBase {
public abstract class AbstractArdoniEntity extends MonsterEntityBase implements EntityWithMarkerTextureProvider {
public AbstractArdoniEntity(EntityType<? extends HostileEntity> entityType, World world) {
super(entityType, world, EntityGroup.DEFAULT);
}
Expand Down Expand Up @@ -65,16 +63,12 @@ protected void dropLoot(DamageSource damageSource, boolean causedByPlayer) {
this.dropStack(this.toGrave());
}

public abstract Identifier getSkinTexture();

public abstract Optional<Identifier> getMarkerTexture();

public abstract Color4i getColor();

public abstract ArdoniType getArdoniType();

public ItemStack toGrave() {
return this.getMarkerTexture().map(ArdoniGraveBlockEntity::buildGrave).orElse(ItemStack.EMPTY);
return this.getMarkerTextureId().map(ArdoniGraveBlockEntity::buildGrave).orElse(ItemStack.EMPTY);
}

public boolean isFemale() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public AegusEntity(EntityType<? extends HostileEntity> entityType, World world)
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public AureliusEntity(EntityType<? extends HostileEntity> entityType, World worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public DeathSingerEntity(EntityType<? extends HostileEntity> entityType, World w
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public GalleousEntity(EntityType<? extends HostileEntity> entityType, World worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public HadionEntity(EntityType<? extends HostileEntity> entityType, World world)
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public HubrisEntity(EntityType<? extends HostileEntity> entityType, World world)
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public KaltarisMasterEntity(EntityType<? extends HostileEntity> entityType, Worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public LucidiusEntity(EntityType<? extends HostileEntity> entityType, World worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public MendorisMasterEntity(EntityType<? extends HostileEntity> entityType, Worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public OsivianEntity(EntityType<? extends HostileEntity> entityType, World world
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public RiaEntity(EntityType<? extends HostileEntity> entityType, World world) {
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public SendarisMasterEntity(EntityType<? extends HostileEntity> entityType, Worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public SennEntity(EntityType<? extends HostileEntity> entityType, World world) {
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public SiderianEntity(EntityType<? extends HostileEntity> entityType, World worl
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public ThalleousEntity(EntityType<? extends HostileEntity> entityType, World wor
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public TideSingerEntity(EntityType<? extends HostileEntity> entityType, World wo
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ protected void initDataTracker() {
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public ValEntity(EntityType<? extends HostileEntity> entityType, World world) {
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public ZinaidaEntity(EntityType<? extends HostileEntity> entityType, World world
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public ZuliusEntity(EntityType<? extends HostileEntity> entityType, World world)
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return TEXTURE;
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.ofNullable(TEXTURE_MARKER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ArdoniEntity(EntityType<? extends ArdoniEntity> entityType, World world)
}

@Override
public Optional<Identifier> getMarkerTexture() {
public Optional<Identifier> getMarkerTextureId() {
return Optional.empty();
}

Expand All @@ -46,7 +46,7 @@ public Color4i getColor() {
}

@Override
public Identifier getSkinTexture() {
public Identifier getTextureId() {
return Identifier.of(SongsOfWar.MOD_ID, "textures/entity/ardoni/ardoni_base.png");
}

Expand Down
Loading

0 comments on commit 31f7b4b

Please sign in to comment.