Class DragEditorFeature
java.lang.Object
de.luckymcdev.foundryengine.client.editor.feature.DragEditorFeature
- All Implemented Interfaces:
EditorFeature
- Direct Known Subclasses:
AreaEditorFeature, CutsceneEditorFeature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected intprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected doublevoidprotected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidonDragTick(net.minecraft.client.Minecraft mc) booleanonScroll(double vertical) protected voidreset()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EditorFeature
render
-
Field Details
-
wasUsing
protected boolean wasUsing -
useTicks
protected int useTicks -
storedDistance
protected double storedDistance
-
-
Constructor Details
-
DragEditorFeature
public DragEditorFeature()
-
-
Method Details
-
getScrollSensitivity
protected double getScrollSensitivity() -
clientTick
public void clientTick()- Specified by:
clientTickin interfaceEditorFeature
-
onScroll
public boolean onScroll(double vertical) - Specified by:
onScrollin interfaceEditorFeature
-
onDeactivated
public void onDeactivated()- Specified by:
onDeactivatedin interfaceEditorFeature
-
reset
protected void reset() -
onDragStart
protected abstract void onDragStart() -
onDragTick
protected abstract void onDragTick(net.minecraft.client.Minecraft mc) -
onDragEnd
protected abstract void onDragEnd() -
onDistanceChanged
protected abstract void onDistanceChanged()
-