-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
5 changed files
with
65 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
patches/net/minecraft/client/renderer/entity/state/EntityRenderState.java.patch
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
30 changes: 30 additions & 0 deletions
30
src/main/java/net/neoforged/neoforge/client/event/UpdateRenderStateEvent.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,30 @@ | ||
/* | ||
* Copyright (c) NeoForged and contributors | ||
* SPDX-License-Identifier: LGPL-2.1-only | ||
*/ | ||
|
||
package net.neoforged.neoforge.client.event; | ||
|
||
import net.minecraft.client.renderer.entity.state.EntityRenderState; | ||
import net.minecraft.world.entity.Entity; | ||
import net.neoforged.bus.api.Event; | ||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
public class UpdateRenderStateEvent<E extends Entity, S extends EntityRenderState> extends Event { | ||
private final E entity; | ||
private final S renderState; | ||
|
||
@ApiStatus.Internal | ||
public UpdateRenderStateEvent(E entity, S renderState) { | ||
this.entity = entity; | ||
this.renderState = renderState; | ||
} | ||
|
||
public E getEntity() { | ||
return entity; | ||
} | ||
|
||
public S getCurrentState() { | ||
return renderState; | ||
} | ||
} |
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