mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Code cleanup (#5468)
* remove direct guava predicates from BlockStateMachine * cleanup blockstatebasic * fix a large number of e.printStacktrace calls, narrow ComputerIntegration exception signature * fix simple todos, remove invalid todos, unify some duplicate rendering code * use a generic method to get around unchecked warning * remove some redundant uses of hasCapability * experimental OptionalCapability class. not in use yet * nullable checks/annotations & remove duplicate field controlType in factory TE * Inline various redundant variables * Remove unused list * Cleanup BlockStateGenerator * Replace string constants with pointers to the proper mod id constant * As 9.7.5 breaks backwards compat API wise for the DynamicNetwork this is as good a time as any to remove this deprecated method * Use two argument constructor instead of appending a ':' inbetween * Convert other BlockState type classes to using suppliers for tile entity creation
This commit is contained in:
1 parent
40620ec23b
commit
80b07bc4b3
115 files changed
+583
-633
No files matched your search
@@ -75,7 +75,7 @@ public class WailaDataProvider implements IWailaDataProvider {
|
||||
} else if (tile instanceof TileEntityBoundingBlock) {
|
||||
TileEntityBoundingBlock bound = (TileEntityBoundingBlock) tile;
|
||||
Coord4D coord = new Coord4D(bound.getPos(), tile.getWorld());
|
||||
//TODO: Switch to IItemHandler though there is no good way to get the name of an IItemHandler
|
||||
//TODO: Switch to a smarter way to get the main tile's name - i.e. block name
|
||||
if (bound.receivedCoords && coord.getTileEntity(tile.getWorld()) instanceof IInventory) {
|
||||
currenttip.set(0, EnumColor.WHITE + ((IInventory) coord.getTileEntity(tile.getWorld())).getName());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user