Skip to content

Commit

Permalink
Remove more deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Witixin1512 committed Jan 31, 2024
1 parent 2ad4042 commit e704798
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,14 @@ default Color getRenderColor(T animatable, float partialTick, int packedLight) {
return Color.WHITE;
}

/**
* Gets a packed overlay coordinate pair for rendering.<br>
* Mostly just used for the red tint when an entity is hurt,
* but can be used for other things like the {@link net.minecraft.world.entity.monster.Creeper}
* white tint when exploding.
* @deprecated Use {@link GeoRenderer#getPackedOverlay(GeoAnimatable, float, float)}
*/
@Deprecated(forRemoval = true)
default int getPackedOverlay(T animatable, float u) {
return OverlayTexture.NO_OVERLAY;
}

/**
* Gets a packed overlay coordinate pair for rendering.<br>
* Mostly just used for the red tint when an entity is hurt,
* but can be used for other things like the {@link net.minecraft.world.entity.monster.Creeper}
* white tint when exploding.
*/
default int getPackedOverlay(T animatable, float u, float partialTick) {
return getPackedOverlay(animatable, u);
return OverlayTexture.NO_OVERLAY;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,14 @@ default Color getRenderColor(T animatable, float partialTick, int packedLight) {
return Color.WHITE;
}

/**
* Gets a packed overlay coordinate pair for rendering.<br>
* Mostly just used for the red tint when an entity is hurt,
* but can be used for other things like the {@link net.minecraft.world.entity.monster.Creeper}
* white tint when exploding.
* @deprecated Use {@link GeoRenderer#getPackedOverlay(GeoAnimatable, float, float)}
*/
@Deprecated(forRemoval = true)
default int getPackedOverlay(T animatable, float u) {
return OverlayTexture.NO_OVERLAY;
}

/**
* Gets a packed overlay coordinate pair for rendering.<br>
* Mostly just used for the red tint when an entity is hurt,
* but can be used for other things like the {@link net.minecraft.world.entity.monster.Creeper}
* white tint when exploding.
*/
default int getPackedOverlay(T animatable, float u, float partialTick) {
return getPackedOverlay(animatable, u);
return OverlayTexture.NO_OVERLAY;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ default Color getRenderColor(T animatable, float partialTick, int packedLight) {
return Color.WHITE;
}

/**
* Gets a packed overlay coordinate pair for rendering.<br>
* Mostly just used for the red tint when an entity is hurt,
* but can be used for other things like the {@link net.minecraft.world.entity.monster.Creeper}
* white tint when exploding.
* @deprecated Use {@link GeoRenderer#getPackedOverlay(GeoAnimatable, float, float)}
*/
@Deprecated(forRemoval = true)
default int getPackedOverlay(T animatable, float u) {
return OverlayTexture.NO_OVERLAY;
}

/**
* Gets a packed overlay coordinate pair for rendering.<br>
Expand All @@ -88,7 +77,7 @@ default int getPackedOverlay(T animatable, float u) {
* white tint when exploding.
*/
default int getPackedOverlay(T animatable, float u, float partialTick) {
return getPackedOverlay(animatable, u);
return OverlayTexture.NO_OVERLAY;
}

/**
Expand Down

0 comments on commit e704798

Please sign in to comment.