1.12: Added Factory Hopper bottom item handler.
This commit is contained in:
parent
35b1785e9c
commit
123319eaf0
6 changed files with 18 additions and 14 deletions
|
@ -4,4 +4,4 @@ org.gradle.jvmargs=-Xmx8G
|
|||
version_minecraft=1.12.2
|
||||
version_forge=14.23.5.2768
|
||||
version_jei=4.10.0.198
|
||||
version_engineersdecor=1.0.19-b2
|
||||
version_engineersdecor=1.0.19-b3
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"homepage": "https://www.curseforge.com/minecraft/mc-mods/engineers-decor/",
|
||||
"1.12.2": {
|
||||
"1.0.19-b3": "[A] Factory Hopper: Added bottom item handler (CR#227).",
|
||||
"1.0.19-b2": "[F] Fixed Floor Grating item pass-through jitters (thx Cid).\n[M] Removed obsolete recipe collision testing recipes.",
|
||||
"1.0.19-b1": "[F] Fixed Tree Cutter / Block Breaker not accepting small energy transfers (thx WindFox, issue #82).",
|
||||
"1.0.18": "[R] Release based on v1.0.18-b2. Release-to-release changes: * Tree cutter config fixes. * Treated Wood Crafting Table mouse tweaks. * Lang updates.\n[M] Lang update ru_ru (PR#77, thanks Smollet777).",
|
||||
|
@ -79,6 +80,6 @@
|
|||
},
|
||||
"promos": {
|
||||
"1.12.2-recommended": "1.0.18",
|
||||
"1.12.2-latest": "1.0.19-b2"
|
||||
"1.12.2-latest": "1.0.19-b3"
|
||||
}
|
||||
}
|
|
@ -10,6 +10,8 @@ Mod sources for Minecraft version 1.12.2.
|
|||
----
|
||||
## Version history
|
||||
|
||||
- v1.0.19-b3 [A] Factory Hopper: Added bottom item handler (CR#227).
|
||||
|
||||
- v1.0.19-b2 [F] Fixed Floor Grating item pass-through jitters (thx Cid).
|
||||
[M] Removed obsolete recipe collision testing recipes.
|
||||
|
||||
|
|
|
@ -612,6 +612,7 @@ public class BlockDecorHopper extends BlockDecorDirected
|
|||
// ISidedInventory ----------------------------------------------------------------------------
|
||||
|
||||
private final IItemHandler item_handler_ = new SidedInvWrapper(this, EnumFacing.UP);
|
||||
private final IItemHandler down_item_handler_ = new SidedInvWrapper(this, EnumFacing.DOWN);
|
||||
private static final int[] SIDED_INV_SLOTS;
|
||||
static {
|
||||
SIDED_INV_SLOTS = new int[NUM_OF_SLOTS];
|
||||
|
@ -628,7 +629,7 @@ public class BlockDecorHopper extends BlockDecorDirected
|
|||
|
||||
@Override
|
||||
public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction)
|
||||
{ return false; }
|
||||
{ return direction==EnumFacing.DOWN; }
|
||||
|
||||
// Capability export ----------------------------------------------------------------------------
|
||||
|
||||
|
@ -641,7 +642,9 @@ public class BlockDecorHopper extends BlockDecorDirected
|
|||
@Nullable
|
||||
public <T> T getCapability(Capability<T> capability, @Nullable EnumFacing facing)
|
||||
{
|
||||
if(capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) return (T)item_handler_;
|
||||
if(capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
|
||||
return (facing == EnumFacing.DOWN) ? ((T)down_item_handler_) : ((T)item_handler_);
|
||||
}
|
||||
return super.getCapability(capability, facing);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue