-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optimization for DynamicTrainModel with BBMODEL
- Loading branch information
Showing
6 changed files
with
310 additions
and
189 deletions.
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
13 changes: 13 additions & 0 deletions
13
common/src/main/java/cn/zbx1425/mtrsteamloco/mixin/ModelMapperAccessor.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,13 @@ | ||
package cn.zbx1425.mtrsteamloco.mixin; | ||
|
||
import mtr.mappings.ModelMapper; | ||
import net.minecraft.client.model.geom.ModelPart; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(ModelMapper.class) | ||
public interface ModelMapperAccessor { | ||
|
||
@Accessor | ||
ModelPart getModelPart(); | ||
} |
18 changes: 18 additions & 0 deletions
18
common/src/main/java/cn/zbx1425/mtrsteamloco/mixin/ModelPartAccessor.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,18 @@ | ||
package cn.zbx1425.mtrsteamloco.mixin; | ||
|
||
import net.minecraft.client.model.geom.ModelPart; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Mixin(ModelPart.class) | ||
public interface ModelPartAccessor { | ||
|
||
@Accessor | ||
List<ModelPart.Cube> getCubes(); | ||
|
||
@Accessor | ||
Map<String, ModelPart> getChildren(); | ||
} |
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.