KnightMiner
cb213db95f
Add single property data and lazy load the instance in RetexturedTileEntity
2020-08-05 21:34:45 -05:00
KnightMiner
623a28f673
Disallow Blocks.AIR as a texture for models
...
Set to null so I do not need to check for two values every time
2020-08-05 21:34:16 -05:00
KnightMiner
65fa5cd869
Remove configurate version prop, its been removed
2020-08-05 21:10:18 -05:00
KnightMiner
7142f50d6a
Update multipart block logic to better support latest Forge build
...
We now always call the model data version, but we still do not always get needed model data.
2020-08-05 21:07:59 -05:00
KnightMiner
99571cafba
Port two data gen utilities from Inspirations
...
* Utility for adding config to recipes
* Utility for getting names and generic conditions in recipes
2020-08-03 00:32:59 -05:00
KnightMiner
5543aa202a
Remove deobf jar
...
Legacy resource
2020-08-03 00:26:09 -05:00
KnightMiner
f0e5bf0b81
Remove config module
...
Is unused without pulsar
2020-08-03 00:25:56 -05:00
KnightMiner
bf801e8f8c
Bit of resource cleanup
2020-08-03 00:18:23 -05:00
KnightMiner
99bf56c780
Clean up utilities
...
* Consistently naming utilities Helper instead of Utils
* Remove SlimeknightsException, I honestly have no idea why we needed our own exception
* Remove a couple unused utilities, not sure where they are from
* Add common block position NBT helper
* Remove getTagSafe helpers, vanilla added something similar recently and I'd rather avoid creating a throwing away a bunch of tags
2020-08-03 00:18:18 -05:00
KnightMiner
bb8442d4f5
Move recipe match to a better package.
...
Deprecate it until I know whether we are keeping it
2020-08-03 00:18:05 -05:00
KnightMiner
f883314a60
Add back JEI plugin and implement UI and retextured recipe logic
2020-08-03 00:18:00 -05:00
KnightMiner
ecca746f3b
Add dynamically retexturable blocks
...
Includes recipe, loot function, block, item, tile entity, and model
2020-08-02 22:26:09 -05:00
KnightMiner
6118f68379
Use capital case for inject objects
...
Since they are final
2020-08-02 22:22:03 -05:00
KnightMiner
bf555f5797
Switch from using BlockModel in custom models to SimpleBlockModel
...
* SimpleBlockModel is simplier, containing only model elements, parent, and textures (textures for fallback)
* Most of the model properties are now fetched from the IModelConfig owner as its more accurate (makes inheritance better)
* To override textures and other basic properties, a ModelConfigurationWrapper is used
* To override model elements, a bake method taking a BlockPart list is available
* ConnectedModel, FluidsModel, and InventoryModel are updated to use this new system
2020-08-02 20:29:50 -05:00
KnightMiner
7c6c3b9cfd
Register fluid model loader
2020-08-02 20:26:33 -05:00
KnightMiner
8dfed11d98
Repackaging: move model utilities to utility package
...
In preparation for a bunch of new model utilities
2020-08-02 20:26:03 -05:00
KnightMiner
594dbde3b2
Add better null safety
...
All get methods are now guarenteed nonnull. ItemObject and EnumObject both have a nullable getOrNull method now that throws no exceptions
2020-07-28 16:44:52 -05:00
KnightMiner
92a8ad7d32
A few missing javadocs
2020-07-28 13:26:26 -05:00
KnightMiner
cbb0a52c18
Allow an ItemObject name to be fetched before registry events fire
...
Also remove a few constructors provided because of "what if they are needed", as I really doubt anyone will be extending this system. They can make a PR if they need them later
2020-07-28 13:25:02 -05:00
KnightMiner
9c5b8fb5af
Add castDelegate helper, used in a few places
2020-07-28 13:07:52 -05:00
KnightMiner
c8bff521e8
Merge BlockItemObject into ItemObject as they fill the same need
...
Both are a wrapper around a registry entry that implements IItemProvider
2020-07-28 13:06:59 -05:00
KnightMiner
aee55e8dff
Add EnumObject::getOrThrow
...
Saves calls to Object::requireNonNull. If nullable is allowed, use get as before
2020-07-28 02:34:36 -05:00
KnightMiner
5c26722425
Inspection errors
2020-07-28 02:09:21 -05:00
KnightMiner
c518fac5f0
Rename ContainerTypeRegistryAdapter::registerType as the parameter is ambiguous
2020-07-28 02:03:51 -05:00
KnightMiner
5f4093c53a
Allow a enum object with a higher type to be placed in a lower type builder
2020-07-28 02:01:54 -05:00
KnightMiner
1457a4ddf2
Add EnumObject::empty() to fetch an empty enum object
...
To avoid the need for null checks
2020-07-28 01:53:50 -05:00
KnightMiner
0abd41f1e1
Add EnumObject::forEach and a builder putDelegate
...
Both for common actions I am finding I am using
2020-07-28 01:30:31 -05:00
KnightMiner
67fee327a3
Missing methods for working with enum objects in item registry
2020-07-27 23:57:57 -05:00
alexbegt
ca176a3e66
Update to the latest forge and latest mappings
2020-07-27 23:24:58 -04:00
KnightMiner
eafa8da4b7
Add more methods to the item registry adapter that make use of default props
...
Also make default props parameter optional and add some missing javadocs
2020-07-27 21:55:21 -05:00
KnightMiner
fe0f3297d9
Fix accidently caching an invalid texture atlas
2020-07-27 21:45:18 -05:00
KnightMiner
812bbe23fd
Add helper to registry adapters to copy name from another object
2020-07-27 21:44:57 -05:00
KnightMiner
ae8bba0162
Move injected helper to public context
2020-07-27 21:44:21 -05:00
KnightMiner
8f5999f37f
Fix crash on data gen as minecraft instance is null
2020-07-27 21:44:06 -05:00
KnightMiner
7be8e4e3ab
Clean up models
...
Just TRSR remains as possibly needed still, have to determine if that is still needed later
2020-07-26 00:16:21 -05:00
KnightMiner
b8bcd95af3
Add EnumObject.Builder and use it in the registries
...
Gives me more control over implementation of the map
2020-07-25 21:12:39 -05:00
KnightMiner
f6b1289ab9
Port shaped fallback recipe from Tinkers Construct
2020-07-25 20:59:44 -05:00
KnightMiner
6708568ab1
Add helper for getting a block sprite
2020-07-25 18:52:37 -05:00
Arthur (fuj1n) Uzulin
8eb2932f86
Fix book exceptions introduced in f1037ce and refined book nullability
2020-07-25 18:27:21 +10:00
KnightMiner
115d097603
Missed a packet in my earlier commit
2020-07-24 13:06:00 -05:00
KnightMiner
36c94bab9c
Add basic fluid rendering
...
Includes basic fluids model with just a list of fluid cuboids, and rendering logic to render those cuboids
2020-07-24 12:38:23 -05:00
KnightMiner
8b8f979a4f
Clean up network logic
...
* Renamed BookNetowkr network to MantleNetwork, as I'd like this to be usable for things other than books if needed
* Replace abstract packet with an interface
* Reimplement threadsafe packet
* Simplify registration methods
* Require a network direction on registation, to filter packets into client only/server only
2020-07-24 12:09:56 -05:00
KnightMiner
bdf1f11a03
Move model loader registration to mod construct
...
According to pupnewfster, registering it later causes it to randomly be registered too late
2020-07-24 11:42:19 -05:00
KnightMiner
a8899f976c
Port recipe utils from Tinkers Construct
...
Includes inventory wrappers, fluid ingredient, and recipe getter utils
2020-07-24 01:36:44 -05:00
KnightMiner
e658d4b5f9
Add fallback model loader
...
Allows loading the first model from a list with a matching mod ID
2020-07-24 00:28:16 -05:00
KnightMiner
6c0fb541b8
Add connected block model
...
More powerful than the 1.15 TiC one, supports 4 different connection types
2020-07-23 15:55:00 -05:00
KnightMiner
ba7a804212
Add default implementation to open GUI in InventoryBlock
...
Since we used the same logic in all cases
2020-07-22 23:24:10 -05:00
KnightMiner
b0354f803a
Port inventory model from Tinkers Construct
2020-07-22 23:10:15 -05:00
KnightMiner
d696860dcf
Kill the proxy, proxies are an outdated model
2020-07-22 21:23:25 -05:00
KnightMiner
b0e34d4d60
Add registration helpers
...
Contains two styles: adapters (for use in registry events) and deferred (for deferred registration). Should all support the same methods
2020-07-22 20:57:31 -05:00