mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-27 15:33:05 +00:00
TSlottedPart, IRandomDisplayTick, INeighborTileChange, TRandomUpdateTick, ISidedHollowConnect and IMicroMaterialRender. All six are member- and descriptor-identical to the reference. The seven implementors and mixin tiles were diffed too and are unchanged member for member. Five were already pure abstract interfaces in bytecode, so their conversion has no bytecode consequence; exactly one class leaves the jar, TRandomUpdateTick$class. onWorldJoin cannot become a default: TMultiPart declares it, and a superclass method beats an interface default, so the auto-registration would silently never run. It stays abstract and implementors call TickScheduler.loadRandomTick themselves, as RedstoneTorchPart already did. No bridge was written for TRandomUpdateTick$class. No jar in the pack references TRandomUpdateTick in any form, and the frozen baseline holds exactly the eight helpers the inventory lists. 99 plain-JVM tests and 5 Forge server tests pass.
15 lines
449 B
Java
15 lines
449 B
Java
package codechicken.microblock;
|
|
|
|
/**
|
|
* Implement this on center parts that connect through hollow covers to have the covers render their hollows to fit the
|
|
* connection size.
|
|
*/
|
|
public interface ISidedHollowConnect {
|
|
|
|
/**
|
|
* @param side The side of the block on which the cover resides
|
|
* @return The size (width and height) of the connection in pixels. Must be less than 12 and more than 0
|
|
*/
|
|
int getHollowSize(int side);
|
|
}
|