forked from Traincraft/Traincraft
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added SkinRegistry endpoints to match some that TiM had. not fully used yet, will be later. - Added the options for post-process recolors to skins, not used yet, but will be eventually. - Sound rework to add additional caching and help prevent bell/whistle spam, sounds can also now be defined from the entity itself without needing to mess with an enum. - Trains should now show as powered minecarts if anything checks it. - new registration option added to the TraincraftRegistry that accepts a TrainRecord. - TraincraftRegistry transport registration methods can now use the `getRecipe()` and `getTier()` methods to automatically make recipes for trains and stock. - Tier crafters updated, you should be able to extend them and change the tier value to make your own craft tier table.
- Loading branch information
1 parent
6109e87
commit 1b90d0e
Showing
11 changed files
with
152 additions
and
49 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package train.common.api; | ||
|
||
public class TrainSound { | ||
public String addr; | ||
public float vol=1; | ||
public float pit=1; | ||
public int len=1; | ||
public boolean runningPitch=false; | ||
|
||
public TrainSound(String address, float volume, float pitch, int length){ | ||
addr=address; | ||
vol=volume; | ||
pit=pitch; | ||
len=length; | ||
} | ||
public TrainSound enableRunningPitch(){ | ||
runningPitch=true; | ||
return this; | ||
} | ||
|
||
} |
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