mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 06:27:41 +01:00
Reverted commenting out code
- Ignore this branch, it is experimental
This commit is contained in:
parent
d080d5fbd0
commit
5e77736f34
8 changed files with 27 additions and 14 deletions
|
@ -65,9 +65,9 @@ import com.simibubi.create.modules.logistics.block.extractor.LinkedExtractorBloc
|
|||
import com.simibubi.create.modules.logistics.block.inventories.FlexcrateBlock;
|
||||
import com.simibubi.create.modules.logistics.block.transposer.LinkedTransposerBlock;
|
||||
import com.simibubi.create.modules.logistics.block.transposer.TransposerBlock;
|
||||
import com.simibubi.create.modules.logistics.management.base.LogisticalCasingBlock;
|
||||
import com.simibubi.create.modules.logistics.management.base.LogisticalControllerBlock;
|
||||
import com.simibubi.create.modules.logistics.management.base.LogisticalControllerBlock.LogisticalControllerIndicatorBlock;
|
||||
import com.simibubi.create.modules.logistics.management.base.NewLogisticalCasingBlock;
|
||||
import com.simibubi.create.modules.logistics.management.index.LogisticalIndexBlock;
|
||||
import com.simibubi.create.modules.logistics.transport.villager.LogisticiansTableBlock;
|
||||
import com.simibubi.create.modules.logistics.transport.villager.PackageFunnelBlock;
|
||||
|
@ -197,7 +197,7 @@ public enum AllBlocks {
|
|||
FLEXPEATER(new FlexpeaterBlock()),
|
||||
FLEXPEATER_INDICATOR(new RenderUtilityBlock()),
|
||||
|
||||
LOGISTICAL_CASING(new NewLogisticalCasingBlock()),
|
||||
LOGISTICAL_CASING(new LogisticalCasingBlock()),
|
||||
LOGISTICAL_CONTROLLER(new LogisticalControllerBlock()),
|
||||
LOGISTICAL_CONTROLLER_INDICATOR(new LogisticalControllerIndicatorBlock()),
|
||||
LOGISTICAL_INDEX(new LogisticalIndexBlock()),
|
||||
|
|
|
@ -8,7 +8,9 @@ import com.simibubi.create.modules.logistics.item.filter.AttributeFilterScreen;
|
|||
import com.simibubi.create.modules.logistics.item.filter.FilterContainer;
|
||||
import com.simibubi.create.modules.logistics.item.filter.FilterScreen;
|
||||
import com.simibubi.create.modules.logistics.management.controller.LogisticalInventoryControllerContainer;
|
||||
import com.simibubi.create.modules.logistics.management.controller.LogisticalInventoryControllerScreen;
|
||||
import com.simibubi.create.modules.logistics.management.index.LogisticalIndexContainer;
|
||||
import com.simibubi.create.modules.logistics.management.index.LogisticalIndexScreen;
|
||||
import com.simibubi.create.modules.schematics.block.SchematicTableContainer;
|
||||
import com.simibubi.create.modules.schematics.block.SchematicTableScreen;
|
||||
import com.simibubi.create.modules.schematics.block.SchematicannonContainer;
|
||||
|
@ -60,8 +62,8 @@ public enum AllContainers {
|
|||
bind(SCHEMATIC_TABLE, SchematicTableScreen::new);
|
||||
bind(SCHEMATICANNON, SchematicannonScreen::new);
|
||||
bind(FLEXCRATE, FlexcrateScreen::new);
|
||||
// bind(LOGISTICAL_INDEX, LogisticalIndexScreen::new);
|
||||
// bind(LOGISTICAL_CONTROLLER, LogisticalInventoryControllerScreen::new);
|
||||
bind(LOGISTICAL_INDEX, LogisticalIndexScreen::new);
|
||||
bind(LOGISTICAL_CONTROLLER, LogisticalInventoryControllerScreen::new);
|
||||
bind(FILTER, FilterScreen::new);
|
||||
bind(ATTRIBUTE_FILTER, AttributeFilterScreen::new);
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import java.util.function.Function;
|
|||
import com.simibubi.create.modules.contraptions.components.contraptions.ContraptionEntity;
|
||||
import com.simibubi.create.modules.contraptions.components.contraptions.ContraptionEntityRenderer;
|
||||
import com.simibubi.create.modules.logistics.transport.CardboardBoxEntity;
|
||||
import com.simibubi.create.modules.logistics.transport.CardboardBoxEntityRenderer;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityClassification;
|
||||
|
@ -57,7 +58,7 @@ public enum AllEntities {
|
|||
|
||||
@OnlyIn(value = Dist.CLIENT)
|
||||
public static void registerRenderers() {
|
||||
// RenderingRegistry.registerEntityRenderingHandler(CardboardBoxEntity.class, CardboardBoxEntityRenderer::new);
|
||||
RenderingRegistry.registerEntityRenderingHandler(CardboardBoxEntity.class, CardboardBoxEntityRenderer::new);
|
||||
RenderingRegistry.registerEntityRenderingHandler(ContraptionEntity.class, ContraptionEntityRenderer::new);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@ import com.simibubi.create.modules.curiosities.blockzapper.BlockzapperBeamPacket
|
|||
import com.simibubi.create.modules.curiosities.symmetry.SymmetryEffectPacket;
|
||||
import com.simibubi.create.modules.logistics.block.diodes.ConfigureFlexpeaterPacket;
|
||||
import com.simibubi.create.modules.logistics.item.filter.FilterScreenPacket;
|
||||
import com.simibubi.create.modules.logistics.management.controller.LogisticalControllerConfigurationPacket;
|
||||
import com.simibubi.create.modules.logistics.management.index.IndexContainerUpdatePacket;
|
||||
import com.simibubi.create.modules.logistics.management.index.IndexOrderRequest;
|
||||
import com.simibubi.create.modules.logistics.packet.ConfigureFlexcratePacket;
|
||||
import com.simibubi.create.modules.logistics.packet.ConfigureStockswitchPacket;
|
||||
import com.simibubi.create.modules.schematics.packet.ConfigureSchematicannonPacket;
|
||||
|
@ -36,19 +39,19 @@ public enum AllPackets {
|
|||
CONFIGURE_CHASSIS(ConfigureChassisPacket.class, ConfigureChassisPacket::new),
|
||||
CONFIGURE_MOTOR(ConfigureMotorPacket.class, ConfigureMotorPacket::new),
|
||||
CONFIGURE_FLEXPEATER(ConfigureFlexpeaterPacket.class, ConfigureFlexpeaterPacket::new),
|
||||
// CONFIGURE_LOGISTICAL_CONTROLLER(LogisticalControllerConfigurationPacket.class,
|
||||
// LogisticalControllerConfigurationPacket::new),
|
||||
CONFIGURE_LOGISTICAL_CONTROLLER(LogisticalControllerConfigurationPacket.class,
|
||||
LogisticalControllerConfigurationPacket::new),
|
||||
CONFIGURE_MIXER(ConfigureMixerPacket.class, ConfigureMixerPacket::new),
|
||||
PLACE_SCHEMATIC(SchematicPlacePacket.class, SchematicPlacePacket::new),
|
||||
UPLOAD_SCHEMATIC(SchematicUploadPacket.class, SchematicUploadPacket::new),
|
||||
// INDEX_ORDER_REQUEST(IndexOrderRequest.class, IndexOrderRequest::new),
|
||||
INDEX_ORDER_REQUEST(IndexOrderRequest.class, IndexOrderRequest::new),
|
||||
CONFIGURE_FILTER(FilterScreenPacket.class, FilterScreenPacket::new),
|
||||
CONFIGURE_FILTERING_AMOUNT(FilteringCountUpdatePacket.class, FilteringCountUpdatePacket::new),
|
||||
|
||||
// Server to Client
|
||||
SYMMETRY_EFFECT(SymmetryEffectPacket.class, SymmetryEffectPacket::new),
|
||||
BEAM_EFFECT(BlockzapperBeamPacket.class, BlockzapperBeamPacket::new),
|
||||
// INDEX_CONTAINER_UPDATE(IndexContainerUpdatePacket.class, IndexContainerUpdatePacket::new),
|
||||
INDEX_CONTAINER_UPDATE(IndexContainerUpdatePacket.class, IndexContainerUpdatePacket::new),
|
||||
|
||||
;
|
||||
|
||||
|
|
|
@ -64,6 +64,8 @@ import com.simibubi.create.modules.logistics.block.inventories.FlexcrateTileEnti
|
|||
import com.simibubi.create.modules.logistics.block.transposer.LinkedTransposerTileEntity;
|
||||
import com.simibubi.create.modules.logistics.block.transposer.TransposerTileEntity;
|
||||
import com.simibubi.create.modules.logistics.management.base.LogisticalCasingTileEntity;
|
||||
import com.simibubi.create.modules.logistics.management.base.LogisticalControllerTileEntity;
|
||||
import com.simibubi.create.modules.logistics.management.base.LogisticalControllerTileEntityRenderer;
|
||||
import com.simibubi.create.modules.logistics.management.controller.CalculationTileEntity;
|
||||
import com.simibubi.create.modules.logistics.management.controller.RequestTileEntity;
|
||||
import com.simibubi.create.modules.logistics.management.controller.StorageTileEntity;
|
||||
|
@ -71,6 +73,7 @@ import com.simibubi.create.modules.logistics.management.controller.SupplyTileEnt
|
|||
import com.simibubi.create.modules.logistics.management.controller.TransactionsTileEntity;
|
||||
import com.simibubi.create.modules.logistics.management.index.LogisticalIndexTileEntity;
|
||||
import com.simibubi.create.modules.logistics.transport.villager.LogisticiansTableTileEntity;
|
||||
import com.simibubi.create.modules.logistics.transport.villager.LogisticiansTableTileEntityRenderer;
|
||||
import com.simibubi.create.modules.logistics.transport.villager.PackageFunnelTileEntity;
|
||||
import com.simibubi.create.modules.schematics.block.SchematicTableTileEntity;
|
||||
import com.simibubi.create.modules.schematics.block.SchematicannonRenderer;
|
||||
|
@ -220,8 +223,8 @@ public enum AllTileEntities {
|
|||
bind(BeltObserverTileEntity.class, new BeltObserverTileEntityRenderer());
|
||||
bind(FlexpeaterTileEntity.class, new FlexpeaterTileEntityRenderer());
|
||||
|
||||
// bind(LogisticalControllerTileEntity.class, new LogisticalControllerTileEntityRenderer());
|
||||
// bind(LogisticiansTableTileEntity.class, new LogisticiansTableTileEntityRenderer());
|
||||
bind(LogisticalControllerTileEntity.class, new LogisticalControllerTileEntityRenderer());
|
||||
bind(LogisticiansTableTileEntity.class, new LogisticiansTableTileEntityRenderer());
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
|
|
|
@ -17,6 +17,7 @@ import com.simibubi.create.modules.contraptions.base.KineticTileEntity;
|
|||
import com.simibubi.create.modules.contraptions.relays.belt.BeltTileEntity;
|
||||
import com.simibubi.create.modules.logistics.block.belts.AttachedLogisticalBlock;
|
||||
import com.simibubi.create.modules.logistics.item.CardboardBoxItem;
|
||||
import com.simibubi.create.modules.logistics.transport.CardboardBoxEntity;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.item.ItemEntity;
|
||||
|
@ -69,8 +70,8 @@ public class ExtractorTileEntity extends SmartTileEntity {
|
|||
entityPos = entityPos.add(0, .5, 0);
|
||||
|
||||
if (stack.getItem() instanceof CardboardBoxItem) {
|
||||
// entityIn = new CardboardBoxEntity(world, entityPos, stack, facing.getOpposite());
|
||||
// world.playSound(null, getPos(), SoundEvents.ENTITY_ITEM_PICKUP, SoundCategory.BLOCKS, .25f, .05f);
|
||||
entityIn = new CardboardBoxEntity(world, entityPos, stack, facing.getOpposite());
|
||||
world.playSound(null, getPos(), SoundEvents.ENTITY_ITEM_PICKUP, SoundCategory.BLOCKS, .25f, .05f);
|
||||
|
||||
} else {
|
||||
entityIn = new ItemEntity(world, entityPos.x, entityPos.y, entityPos.z, stack);
|
||||
|
|
|
@ -39,6 +39,8 @@ public class LogisticalNetworkHandler {
|
|||
}
|
||||
|
||||
public LogisticalNetwork getNetworkByID(IWorld world, UUID id) {
|
||||
if (!networks.containsKey(world))
|
||||
networks.put(world, new HashMap<>());
|
||||
Map<UUID, LogisticalNetwork> worldNets = networks.get(world);
|
||||
if (!worldNets.containsKey(id))
|
||||
worldNets.put(id, new LogisticalNetwork());
|
||||
|
|
|
@ -88,8 +88,9 @@ public class LogisticiansTableBlock extends HorizontalBlock implements IWithTile
|
|||
if (!itemStack.hasTag())
|
||||
continue;
|
||||
withTileEntityDo(worldIn, pos, te -> te.setNetworkId(itemStack.getTag().getUniqueId("NetworkID")));
|
||||
return;
|
||||
break;
|
||||
}
|
||||
tick(state, worldIn, pos, worldIn.rand);
|
||||
}
|
||||
|
||||
public BlockState getStateForPlacement(BlockItemUseContext context) {
|
||||
|
|
Loading…
Reference in a new issue