ServerParameters

Server-side parameters of a CampfireFlameEntity.

Parameters

origin

Starting position of the entity

relativeTarget

The position towards the fire goes relative to origin

flameConeWidth

The width of the fire cone, points right relative to the shooter's POV

flameConeHeight

The height of the fire cone, points up relative to the shooter's POV

stepResolution

How many ticks to divide the distance between origin and relativeTarget

rayResolution

The resolution to divide the fire cone both horizontally and vertically

particleType

The registry key of the flame particle type in Registries.PARTICLE_TYPE

flammableBlockFireChance

The chance a flammable block is set on fire

nonFlammableBlockFireChance

The chance a non-flammable block is set on fire

flameFireTicks

The number of ticks an entity is additionally set on fire for

damageShooter

Whether the flame should damage the shooter

Constructors

Link copied to clipboard
public CampfireFlameEntity.ServerParameters CampfireFlameEntity.ServerParameters(Vec3d origin, Vec3d relativeTarget, Vec3d flameConeWidth, Vec3d flameConeHeight, Integer stepResolution, RegistryKey<? extends ParticleType<?>> particleType, Integer rayResolution, Double flammableBlockFireChance, Double nonFlammableBlockFireChance, Integer flameFireTicks, Boolean damageShooter)

Properties

Link copied to clipboard
private final Boolean damageShooter
Link copied to clipboard
private final Integer flameFireTicks
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private final Integer rayResolution

Inherited properties

Link copied to clipboard
private final Vec3d flameConeHeight
Link copied to clipboard
private final Vec3d flameConeWidth
Link copied to clipboard
private final Vec3d origin
Link copied to clipboard
private final RegistryKey<? extends ParticleType<?>> particleType
Link copied to clipboard
private final Vec3d relativeTarget
Link copied to clipboard
private final Integer stepResolution

Functions

Link copied to clipboard
public final Boolean getDamageShooter()
Link copied to clipboard
public final Integer getFlameFireTicks()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Integer getRayResolution()

Inherited functions

Link copied to clipboard
public final Vec3d getFlameConeHeight()
Link copied to clipboard
public final Vec3d getFlameConeWidth()
Link copied to clipboard
public final Vec3d getOrigin()
Link copied to clipboard
public final RegistryKey<? extends ParticleType<?>> getParticleType()
Link copied to clipboard
public final Vec3d getRelativeTarget()
Link copied to clipboard
public final Integer getStepResolution()
Link copied to clipboard
public final Unit write(PacketByteBuf buf)