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

public class BlockEntityEnvironmentalAccumulator extends BlockEntityBeacon implements IDegradable
Machine that can accumulate the weather and put it in a bottle.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    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>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockEntityEnvironmentalAccumulator(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
    Make a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.world.entity.Entity>
    Get the list of entities within the area defined by IDegradable.getRadius().
    protected org.apache.commons.lang3.tuple.Triple<Float,Float,Float>
     
    net.minecraft.server.level.ServerBossEvent
     
    double
    Get the numerical representation of the stage of degradation.
    net.minecraft.world.level.Level
    Get the world in which the degradable instance is located.
    float
     
     
    net.minecraft.core.BlockPos
    Get the center location of this degradable instance.
    int
    Get the maximum cooldown tick for accumulating weather.
    float
     
    float
    Get the Y coordinate of the current moving item.
    int
    Get the radius of the area.
    Get the current recipe we're working on.
    protected net.minecraft.world.item.crafting.RecipeType<RecipeEnvironmentalAccumulator>
     
    int
     
    void
     
    void
    read(net.minecraft.nbt.CompoundTag compound)
     
    protected void
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag tag)
     
    void
    setBeamColor(int state)
    Set the beam colors.
    void
     
    protected void
     
    static void
    showAccumulatingParticles(net.minecraft.world.level.Level world, float centerX, float centerY, float centerZ, float spread)
     
    protected void
     

    Methods inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityBeacon

    getBeamColor, getRenderBoundingBox, isBeamActive, setBeamActive, setBeamColor

    Methods 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, writeToItemStack

    Methods 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, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable

    reduceUpdateBackoff, sendImmediateUpdate

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, handleUpdateTag, requestModelDataUpdate, serializeNBT
  • Field Details

  • 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

      protected org.apache.commons.lang3.tuple.Triple<Float,Float,Float> 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

      public RecipeEnvironmentalAccumulator 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:
      setRemoved in class net.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:
      onUpdateReceived in class org.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:
      read in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • getMaxHealth

      public float getMaxHealth()
    • getHealth

      public float getHealth()
    • getLocation

      public net.minecraft.core.BlockPos getLocation()
      Description copied from interface: IDegradable
      Get the center location of this degradable instance.
      Specified by:
      getLocation in interface IDegradable
      Returns:
      The center coordinates.
    • getRadius

      public int getRadius()
      Description copied from interface: IDegradable
      Get the radius of the area.
      Specified by:
      getRadius in interface IDegradable
      Returns:
      The radius.
    • getAreaEntities

      public List<net.minecraft.world.entity.Entity> getAreaEntities()
      Description copied from interface: IDegradable
      Get the list of entities within the area defined by IDegradable.getRadius().
      Specified by:
      getAreaEntities in interface IDegradable
      Returns:
      The entities within the area.
    • getDegradation

      public double getDegradation()
      Description copied from interface: IDegradable
      Get the numerical representation of the stage of degradation. 0 is no degradation, 1 is the maximum degradation.
      Specified by:
      getDegradation in interface IDegradable
      Returns:
      The numerical degradation, a value from 0 to 1.
    • getDegradationWorld

      public net.minecraft.world.level.Level getDegradationWorld()
      Description copied from interface: IDegradable
      Get the world in which the degradable instance is located.
      Specified by:
      getDegradationWorld in interface IDegradable
      Returns:
      The world.
    • getBossInfo

      public net.minecraft.server.level.ServerBossEvent getBossInfo()