Class BlockEntityEnvironmentalAccumulator
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
org.cyclops.evilcraft.core.blockentity.BlockEntityBeacon
org.cyclops.evilcraft.blockentity.BlockEntityEnvironmentalAccumulator
- All Implemented Interfaces:
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>,org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable,org.cyclops.cyclopscore.persist.IDirtyMarkListener,org.cyclops.cyclopscore.persist.nbt.INBTProvider,IDegradable
Machine that can accumulate the weather and put it in a bottle.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionBlockEntityEnvironmentalAccumulator(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.entity.Entity>Get the list of entities within the area defined byIDegradable.getRadius().net.minecraft.server.level.ServerBossEventdoubleGet the numerical representation of the stage of degradation.net.minecraft.world.level.LevelGet the world in which the degradable instance is located.floatnet.minecraft.core.BlockPosGet the center location of this degradable instance.intGet the maximum cooldown tick for accumulating weather.floatfloatGet the Y coordinate of the current moving item.intGet the radius of the area.Get the current recipe we're working on.protected net.minecraft.world.item.crafting.RecipeType<RecipeEnvironmentalAccumulator>intgetState()voidvoidread(net.minecraft.nbt.CompoundTag compound) protected voidvoidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidsetBeamColor(int state) Set the beam colors.voidprotected voidstatic voidshowAccumulatingParticles(net.minecraft.world.level.Level world, float centerX, float centerY, float centerZ, float spread) protected voidMethods inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityBeacon
getBeamColor, getRenderBoundingBox, isBeamActive, setBeamActive, setBeamColorMethods inherited from class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
addCapabilityInternal, addCapabilitySided, canInteractWith, getCapability, getRotation, getStoredCapabilities, getUpdateBackoff, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, load, onDataPacket, onDirty, onLoad, readGeneratedFieldsFromNBT, sendUpdate, setUpdateBackoff, shouldSendUpdate, transformFacingForRotation, unsetSendUpdate, writeGeneratedFieldsToNBT, writeToItemStackMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, 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 org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable
reduceUpdateBackoff, sendImmediateUpdateMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, handleUpdateTag, requestModelDataUpdate, serializeNBT
-
Field Details
-
MAX_AGE
public static final int MAX_AGE- See Also:
-
SPREAD
public static final int SPREAD- See Also:
-
-
Constructor Details
-
BlockEntityEnvironmentalAccumulator
public BlockEntityEnvironmentalAccumulator(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Make a new instance.
-
-
Method Details
-
getInventory
-
recreateBossInfo
protected void recreateBossInfo() -
getBaseBeamColor
-
getMaxCooldownTick
public int getMaxCooldownTick()Get the maximum cooldown tick for accumulating weather.- Returns:
- The maximum cooldown tick.
-
getMovingItemY
public float getMovingItemY()Get the Y coordinate of the current moving item.- Returns:
- The Y coordinate of the inner item.
-
getRecipe
Get the current recipe we're working on.- Returns:
- Returns the recipe being processed, or null in case we're not processing anything at the moment.
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classnet.minecraft.world.level.block.entity.BlockEntity
-
showWaterBeams
protected void showWaterBeams() -
showAccumulatingParticles
protected void showAccumulatingParticles() -
showAccumulatingParticles
public static void showAccumulatingParticles(net.minecraft.world.level.Level world, float centerX, float centerY, float centerZ, float spread) -
getRegistry
protected net.minecraft.world.item.crafting.RecipeType<RecipeEnvironmentalAccumulator> getRegistry() -
onUpdateReceived
public void onUpdateReceived()- Overrides:
onUpdateReceivedin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-
setBeamColor
public void setBeamColor(int state) Set the beam colors.- Parameters:
state- The state to base the colors on.
-
getState
public int getState() -
read
public void read(net.minecraft.nbt.CompoundTag compound) - Overrides:
readin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classorg.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
-
getMaxHealth
public float getMaxHealth() -
getHealth
public float getHealth() -
getLocation
public net.minecraft.core.BlockPos getLocation()Description copied from interface:IDegradableGet the center location of this degradable instance.- Specified by:
getLocationin interfaceIDegradable- Returns:
- The center coordinates.
-
getRadius
public int getRadius()Description copied from interface:IDegradableGet the radius of the area.- Specified by:
getRadiusin interfaceIDegradable- Returns:
- The radius.
-
getAreaEntities
Description copied from interface:IDegradableGet the list of entities within the area defined byIDegradable.getRadius().- Specified by:
getAreaEntitiesin interfaceIDegradable- Returns:
- The entities within the area.
-
getDegradation
public double getDegradation()Description copied from interface:IDegradableGet the numerical representation of the stage of degradation. 0 is no degradation, 1 is the maximum degradation.- Specified by:
getDegradationin interfaceIDegradable- Returns:
- The numerical degradation, a value from 0 to 1.
-
getDegradationWorld
public net.minecraft.world.level.Level getDegradationWorld()Description copied from interface:IDegradableGet the world in which the degradable instance is located.- Specified by:
getDegradationWorldin interfaceIDegradable- Returns:
- The world.
-
getBossInfo
public net.minecraft.server.level.ServerBossEvent getBossInfo()
-