Package net.minecraft.world.attribute
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> pAttribute, EnvironmentAttributeMap pMap) addConstantLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer.Constant<Value> pLayer) addDefaultLayers(Level pLevel) private <Value> EnvironmentAttributeSystem.BuilderaddLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer<Value> pLayer) addPositionalLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer.Positional<Value> pLayer) addTimeBasedLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer.TimeBased<Value> pLayer) addTimelineLayer(Holder<Timeline> pTimeline, LongSupplier pDayTimeGetter) private <Value> voidaddTimelineLayerForAttribute(Holder<Timeline> pTimeline, EnvironmentAttribute<Value> pAttribute, LongSupplier pDayTimeGetter) build()
-
Field Details
-
layersByAttribute
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
addDefaultLayers
-
addConstantLayer
-
addConstantEntry
private <Value> EnvironmentAttributeSystem.Builder addConstantEntry(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeMap pMap) -
addConstantLayer
public <Value> EnvironmentAttributeSystem.Builder addConstantLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer.Constant<Value> pLayer) -
addTimeBasedLayer
public <Value> EnvironmentAttributeSystem.Builder addTimeBasedLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer.TimeBased<Value> pLayer) -
addPositionalLayer
public <Value> EnvironmentAttributeSystem.Builder addPositionalLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer.Positional<Value> pLayer) -
addLayer
private <Value> EnvironmentAttributeSystem.Builder addLayer(EnvironmentAttribute<Value> pAttribute, EnvironmentAttributeLayer<Value> pLayer) -
addTimelineLayer
public EnvironmentAttributeSystem.Builder addTimelineLayer(Holder<Timeline> pTimeline, LongSupplier pDayTimeGetter) -
addTimelineLayerForAttribute
private <Value> void addTimelineLayerForAttribute(Holder<Timeline> pTimeline, EnvironmentAttribute<Value> pAttribute, LongSupplier pDayTimeGetter) -
build
-