Class PotentSulfurBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.PotentSulfurBlockEntity
- All Implemented Interfaces:
TypedInstance<BlockEntityType<?>>, DebugValueSource, IAttachmentHolder, IBlockEntityExtension, TypedInstanceExtension<BlockEntityType<?>>, IWithData<BlockEntityType<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface DebugValueSource
DebugValueSource.Registration, DebugValueSource.ValueGetter<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate static final intstatic final floatlongprivate static final floatprivate static final floatstatic final longstatic final intstatic final intintFields inherited from class BlockEntity
level, remove, worldPositionFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidapplyNauseaEffect(LivingEntity entity) static booleancanBeReachedByNoxiousGas(Level level, BlockPos sourceBlock, Vec3 pos) findNoxiousGasSourceBlock(Level level, BlockPos origin) private static List<LivingEntity> getNearbyLivingEntities(Level level, BlockPos pos) private static intgetUnobstructedBlockCount(Level level, BlockPos pos, int waterBlocks) static RandomSourcegeyserPositional(ServerLevel level, BlockPos pos) private static booleanhaveLineOfSight(Level level, Vec3 a, Vec3 b) private static booleanisGeyserPassableBlock(BlockState state, Level level, BlockPos pos, CollisionContext context) private static booleanprotected voidloadAdditional(ValueInput input) voidprotected voidsaveAdditional(ValueOutput output) voidprivate static voidspawnGeyserParticle(Level level, BlockPos sulfurPos, BlockPos sourcePos) private static voidspawnNoxiousGasCloudParticle(Level level, Vec3 pos) Methods inherited from class BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getAndClearAttachmentTypesToSync, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setRemoved, syncData, triggerEvent, typeHolderMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface IBlockEntityExtension
applyStructureRotation, getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface TypedInstanceExtension
getData
-
Field Details
-
EFFECT_APPLICATION_FREQUENCY_TICKS
private static final int EFFECT_APPLICATION_FREQUENCY_TICKS- See Also:
-
EFFECT_DURATION_IN_SECONDS
private static final float EFFECT_DURATION_IN_SECONDS- See Also:
-
EFFECT_DURATION_IN_TICKS
private static final int EFFECT_DURATION_IN_TICKS- See Also:
-
EFFECT_RANGE
public static final float EFFECT_RANGE- See Also:
-
EFFECT_PREDICATE
-
PARTICLE_FREQUENCY_TICKS
public static final int PARTICLE_FREQUENCY_TICKS- See Also:
-
SOUND_FREQUENCY_TICKS
public static final int SOUND_FREQUENCY_TICKS- See Also:
-
GEYSER_BASE_LAUNCH_SPEED
private static final float GEYSER_BASE_LAUNCH_SPEED- See Also:
-
GEYSER_LAUNCH_FORCE
private static final float GEYSER_LAUNCH_FORCE- See Also:
-
waitingCountdown
public int waitingCountdown -
eruptionTick
public long eruptionTick -
SERVER_NAUSEA_EFFECT_TICKER
-
CLIENT_NOXIOUS_GAS_TICKER
-
CLIENT_GEYSER_PLUME_TICKER
public static Function<SoundEvent, BlockEntityTicker<PotentSulfurBlockEntity>> CLIENT_GEYSER_PLUME_TICKER -
SERVER_WAITING_COUNTDOWN_TICKER
-
GEYSER_SALT
public static final long GEYSER_SALT- See Also:
-
LAUNCH_ENTITY_TICKER
-
-
Constructor Details
-
PotentSulfurBlockEntity
-
-
Method Details
-
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
setLevel
- Overrides:
setLevelin classBlockEntity
-
resetCountdown
public void resetCountdown() -
applyNauseaEffect
-
getNearbyLivingEntities
-
geyserPositional
-
spawnGeyserParticle
-
spawnNoxiousGasCloudParticle
-
getUnobstructedBlockCount
-
isGeyserPassableBlock
private static boolean isGeyserPassableBlock(BlockState state, Level level, BlockPos pos, CollisionContext context) -
findNoxiousGasSourceBlock
-
canBeReachedByNoxiousGas
-
isWater
-
haveLineOfSight
-