Package com.hbm_m.blockentity.machines
Class MachineOreSlopperBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.hbm_m.blockentity.BaseMachineBlockEntity
com.hbm_m.blockentity.machines.MachineOreSlopperBlockEntity
- All Implemented Interfaces:
IEnergyConnector,IEnergyProvider,IEnergyReceiver,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Ore Slopper - Einzelblock-Maschine, Portierung der Kernrezeptlogik aus
TileEntityMachineOreSlopper (1.7.10-Original): Bedrock-Erz-Item (bedrock_ore_base,
mit den 6 Kategorie-Dichten als NBT getaggt, siehe MachineMiningDrillBlockEntity.mineBedrockOre(net.minecraft.server.level.ServerLevel, net.minecraft.core.BlockPos, com.hbm_m.blockentity.machines.MachineMiningDrillBlockEntity.DrillProps))
wird mit Wasser "geschlaemmt" und liefert nach und nach die 6 sortierten Basis-Erze
(bedrock_ore_base_<type>).
Bewusst NICHT uebernommen (siehe Aufgabenstellung): SLOP-Fluid-Nebenprodukt, "toetet Entitaeten
obendrauf"-Mechanik. Energieverbrauch (200/Tick, siehe TileEntityMachineOreSlopper.consumptionBase)
jetzt 1:1 uebernommen ueber einen Batterie-Slot, analog MachineMiningDrillBlockEntity.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>Nested classes/interfaces inherited from interface com.hbm_m.interfaces.IEnergyReceiver
IEnergyReceiver.Priority -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatstatic final intfloatClient-seitige Animation (siehe MachineOreSlopperRenderer): Fan- und Blades-Rotation, 1:1 Pivot-/Achsenwerte ausRenderOreSlopper(Original), Rotationsgeschwindigkeit selbst gewaehlt (Original haelt keinen festen Increment-Wert, nur prev/current-Interpolation).floatfloatClient-seitige Animation (siehe MachineOreSlopperRenderer): Fan- und Blades-Rotation, 1:1 Pivot-/Achsenwerte ausRenderOreSlopper(Original), Rotationsgeschwindigkeit selbst gewaehlt (Original haelt keinen festen Increment-Wert, nur prev/current-Interpolation).static final intstatic final intFields inherited from class com.hbm_m.blockentity.BaseMachineBlockEntity
capacity, energy, inventory, itemHandler, maxExtract, maxReceive, networkInitializedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionMachineOreSlopperBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.inventory.AbstractContainerMenucreateMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player) <T> net.minecraftforge.common.util.LazyOptional<T>getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, net.minecraft.core.Direction side) protected net.minecraft.network.chat.Componentnet.minecraft.network.chat.ComponentintintintgetProgressScaled(int scale) getTank()protected booleanisItemValidForSlot(int slot, net.minecraft.world.item.ItemStack stack) voidload(net.minecraft.nbt.CompoundTag tag) protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) static voidtick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, MachineOreSlopperBlockEntity be) Methods inherited from class com.hbm_m.blockentity.BaseMachineBlockEntity
canConnectEnergy, canExtract, canReceive, chargeFromBatterySlot, chargeItemInSlot, clearRemoved, createGhostItemsFromIngredients, createInventoryHandler, dropInventoryContents, ensureNetworkInitialized, extractEnergy, getEnergyDelta, getEnergyStored, getGhostItems, getInventory, getMaxEnergyStored, getPriority, getProvideSpeed, getReceiveSpeed, getRenderBoundingBox, getUpdatePacket, getUpdateTag, handleUpdateTag, invalidateCaps, isCriticalSlot, isEnergyProviderItem, isEnergyReceiverItem, onDataPacket, onLoad, receiveEnergy, sendUpdateToClient, setEnergyCapacity, setEnergyStored, setLevel, setRemoved, setupFluidCapability, updateEnergyDeltaMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, hasCustomOutlineRendering, requestModelDataUpdate, serializeNBT
-
Field Details
-
SLOT_INPUT
public static final int SLOT_INPUT- See Also:
-
SLOT_BATTERY
public static final int SLOT_BATTERY- See Also:
-
CYCLE_TICKS
public static final int CYCLE_TICKS- See Also:
-
fanRotation
public float fanRotationClient-seitige Animation (siehe MachineOreSlopperRenderer): Fan- und Blades-Rotation, 1:1 Pivot-/Achsenwerte ausRenderOreSlopper(Original), Rotationsgeschwindigkeit selbst gewaehlt (Original haelt keinen festen Increment-Wert, nur prev/current-Interpolation). -
prevFanRotation
public float prevFanRotationClient-seitige Animation (siehe MachineOreSlopperRenderer): Fan- und Blades-Rotation, 1:1 Pivot-/Achsenwerte ausRenderOreSlopper(Original), Rotationsgeschwindigkeit selbst gewaehlt (Original haelt keinen festen Increment-Wert, nur prev/current-Interpolation). -
bladesRotation
public float bladesRotation -
prevBladesRotation
public float prevBladesRotation
-
-
Constructor Details
-
MachineOreSlopperBlockEntity
public MachineOreSlopperBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getCapability
@NotNull public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, @Nullable net.minecraft.core.Direction side) - Specified by:
getCapabilityin interfacenet.minecraftforge.common.capabilities.ICapabilityProvider- Overrides:
getCapabilityin classBaseMachineBlockEntity
-
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, MachineOreSlopperBlockEntity be) -
saveAdditional
protected void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classBaseMachineBlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classBaseMachineBlockEntity
-
getDefaultName
protected net.minecraft.network.chat.Component getDefaultName()- Specified by:
getDefaultNamein classBaseMachineBlockEntity
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName() -
isItemValidForSlot
protected boolean isItemValidForSlot(int slot, net.minecraft.world.item.ItemStack stack) - Specified by:
isItemValidForSlotin classBaseMachineBlockEntity
-
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player) -
getTank
-
getProgress
public int getProgress() -
getMaxProgress
public int getMaxProgress() -
getProgressScaled
public int getProgressScaled(int scale)
-