Class EnvironmentAttributeSystem.Builder
java.lang.Object
net.minecraft.world.attribute.EnvironmentAttributeSystem.Builder
- Enclosing class:
EnvironmentAttributeSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<EnvironmentAttribute<?>, List<EnvironmentAttributeLayer<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <Value> EnvironmentAttributeSystem.BuilderaddConstantEntry(EnvironmentAttribute<Value> attribute, EnvironmentAttributeMap attributeMap) addConstantLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer.Constant<Value> layer) addConstantLayer(EnvironmentAttributeMap attributeMap) addDefaultLayers(Level level) private <Value> EnvironmentAttributeSystem.BuilderaddLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer<Value> layer) addPositionalLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer.Positional<Value> layer) addTimeBasedLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer.TimeBased<Value> layer) addTimelineLayer(Holder<Timeline> timeline, ClockManager clockManager) private <Value> voidaddTimelineLayerForAttribute(Holder<Timeline> timeline, EnvironmentAttribute<Value> attribute, ClockManager clockManager) build()
-
Field Details
-
layersByAttribute
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
addDefaultLayers
-
addConstantLayer
-
addConstantEntry
private <Value> EnvironmentAttributeSystem.Builder addConstantEntry(EnvironmentAttribute<Value> attribute, EnvironmentAttributeMap attributeMap) -
addConstantLayer
public <Value> EnvironmentAttributeSystem.Builder addConstantLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer.Constant<Value> layer) -
addTimeBasedLayer
public <Value> EnvironmentAttributeSystem.Builder addTimeBasedLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer.TimeBased<Value> layer) -
addPositionalLayer
public <Value> EnvironmentAttributeSystem.Builder addPositionalLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer.Positional<Value> layer) -
addLayer
private <Value> EnvironmentAttributeSystem.Builder addLayer(EnvironmentAttribute<Value> attribute, EnvironmentAttributeLayer<Value> layer) -
addTimelineLayer
public EnvironmentAttributeSystem.Builder addTimelineLayer(Holder<Timeline> timeline, ClockManager clockManager) -
addTimelineLayerForAttribute
private <Value> void addTimelineLayerForAttribute(Holder<Timeline> timeline, EnvironmentAttribute<Value> attribute, ClockManager clockManager) -
build
-